Function rustc_typeck::session::expectUnstable [-]  [+] [src]

pub fn expect<T, M>(sess: &Session, opt: Option<T>, msg: M) -> T where M: FnOnce(), <M as FnOnce()>::Output == String