A little rewording
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
e62da8ff0b
commit
facb38d1dc
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ impl<'a> Resolver<'a> {
|
||||||
ResolutionError::ParamInNonTrivialAnonConst { name, is_type } => {
|
ResolutionError::ParamInNonTrivialAnonConst { name, is_type } => {
|
||||||
let mut err = self.session.struct_span_err(
|
let mut err = self.session.struct_span_err(
|
||||||
span,
|
span,
|
||||||
"generic parameters must not be used inside const evaluations",
|
"generic parameters may not be used in const operations",
|
||||||
);
|
);
|
||||||
err.span_label(span, &format!("cannot perform const operation using `{}`", name));
|
err.span_label(span, &format!("cannot perform const operation using `{}`", name));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue