[−][src]Function rustc_typeck::collect::placeholder_type_error

pub(crate) fn placeholder_type_error<'tcx>(
    tcx: TyCtxt<'tcx>,
    span: Option<Span>,
    generics: &[GenericParam<'_>],
    placeholder_types: Vec<Span>,
    suggest: bool
)

If there are any placeholder types (_), emit an error explaining that this is not allowed and suggest adding type parameters in the appropriate place, taking into consideration any and all already existing generic type parameters to avoid suggesting a name that is already in use.