Function rustc_mir_build::thir::pattern::check_match::const_not_var[][src]

fn const_not_var(
    err: &mut DiagnosticBuilder<'_>,
    tcx: TyCtxt<'_>,
    pat: &Pat<'_>,
    path: &Path<'_>
)
Expand description

A path pattern was interpreted as a constant, not a new variable. This caused an irrefutable match failure in e.g. let.