A little rewording

Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
Ethan Brierley 2020-10-12 15:58:06 -05:00 committed by GitHub
parent e62da8ff0b
commit facb38d1dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -469,7 +469,7 @@ impl<'a> Resolver<'a> {
ResolutionError::ParamInNonTrivialAnonConst { name, is_type } => {
let mut err = self.session.struct_span_err(
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));