Function rustc::middle::ty::type_err_to_str[src]
pub fn type_err_to_str(cx: &ctxt, err: &type_err) -> String
Explains the source of a type err in a short,
human readable way. This is meant to be placed in
parentheses after some larger message. You should
also invoke note_and_explain_type_err() afterwards
to present additional details, particularly when
it comes to lifetime-related errors.