]> git.lizzy.rs Git - rust.git/commitdiff
A little rewording
authorEthan Brierley <ethanboxx@gmail.com>
Mon, 12 Oct 2020 20:58:06 +0000 (15:58 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 20:58:06 +0000 (15:58 -0500)
Co-authored-by: varkor <github@varkor.com>
compiler/rustc_resolve/src/diagnostics.rs

index 7e17f222a1589de55eee5b051452a252784613cf..774a147c114ec3c50e57c0f642f3194a68315908 100644 (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));