rustc_trait_selection::error_reporting::traits::suggestions

Function suggest_desugaring_async_fn_to_impl_future_in_trait

Source
pub fn suggest_desugaring_async_fn_to_impl_future_in_trait<'tcx>(
    tcx: TyCtxt<'tcx>,
    sig: FnSig<'tcx>,
    body: TraitFn<'tcx>,
    opaque_def_id: LocalDefId,
    add_bounds: &str,
) -> Option<Vec<(Span, String)>>