Function rustc_middle::ty::suggest_constraining_type_param[][src]

pub fn suggest_constraining_type_param(
    tcx: TyCtxt<'_>,
    generics: &Generics<'_>,
    err: &mut DiagnosticBuilder<'_>,
    param_name: &str,
    constraint: &str,
    def_id: Option<DefId>
) -> bool
Expand description

Suggest restricting a type param with a new bound.