Function syntax::diagnostic::expect[src]

pub fn expect<T: Clone>(diag: &SpanHandler, opt: Option<T>, msg: || -> String) -> T