Function rustc_middle::ty::suggest_constraining_type_params
source ยท pub fn suggest_constraining_type_params<'a>(
tcx: TyCtxt<'_>,
generics: &Generics<'_>,
err: &mut Diag<'_>,
param_names_and_constraints: impl Iterator<Item = (&'a str, &'a str, Option<DefId>)>,
span_to_replace: Option<Span>,
) -> bool
Expand description
Suggest restricting a type param with a new bound.