Function rustc_middle::ty::diagnostics::suggest_constraining_type_param
source · [−]pub fn suggest_constraining_type_param(
tcx: TyCtxt<'_>,
generics: &Generics<'_>,
err: &mut Diagnostic,
param_name: &str,
constraint: &str,
def_id: Option<DefId>
) -> bool
Expand description
Suggest restricting a type param with a new bound.