rustc_trait_selection::error_reporting::traits::suggestions

Trait NextTypeParamName

Source
pub trait NextTypeParamName {
    // Required method
    fn next_type_param_name(&self, name: Option<&str>) -> String;
}
Expand description

Suggest a new type parameter name for diagnostic purposes.

name is the preferred name you’d like to suggest if it’s not in use already.

Required Methods§

Implementations on Foreign Types§

Source§

impl NextTypeParamName for &[GenericParam<'_>]

Implementors§