Struct rustc_resolve::UseError [−][src]
pub(crate) struct UseError<'a> {
err: DiagnosticBuilder<'a>,
candidates: Vec<ImportSuggestion>,
def_id: DefId,
instead: bool,
suggestion: Option<(Span, &'static str, String, Applicability)>,
}Fields
err: DiagnosticBuilder<'a>candidates: Vec<ImportSuggestion>Expand description
Candidates which user could use to access the missing type.
def_id: DefIdExpand description
The DefId of the module to place the use-statements in.
instead: boolExpand description
Whether the diagnostic should say “instead” (as in consider importing ... instead).
suggestion: Option<(Span, &'static str, String, Applicability)>Expand description
Extra free-form suggestion.