1
Fork 0

min_const_generics diagnostics improvements

2

3
This commit is contained in:
Ethan Brierley 2020-10-11 16:47:45 +01:00
parent 1661f77e7b
commit d7029cbd7e
54 changed files with 182 additions and 189 deletions

View file

@ -218,7 +218,7 @@ enum ResolutionError<'a> {
ParamInTyOfConstParam(Symbol),
/// constant values inside of type parameter defaults must not depend on generic parameters.
ParamInAnonConstInTyDefault(Symbol),
/// generic parameters must not be used inside of non-trivial constant values.
/// generic parameters must not be used inside const evaluations.
///
/// This error is only emitted when using `min_const_generics`.
ParamInNonTrivialAnonConst { name: Symbol, is_type: bool },