Function attempt_dyn_to_impl_suggestion

Source
fn attempt_dyn_to_impl_suggestion(
    tcx: TyCtxt<'_>,
    hir_id: Option<HirId>,
    err: &mut Diag<'_>,
)
Expand description

Attempt to suggest that a dyn Trait argument or return type be converted to use impl Trait.