]> git.lizzy.rs Git - rust.git/commitdiff
Remove a little jargon from error
authorEthan Brierley <ethanboxx@gmail.com>
Mon, 12 Oct 2020 20:57:04 +0000 (15:57 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 20:57:04 +0000 (15:57 -0500)
Co-authored-by: varkor <github@varkor.com>
compiler/rustc_resolve/src/diagnostics.rs

index 99773cd176426d8c47f577131b0f153c427f6bbc..7e17f222a1589de55eee5b051452a252784613cf 100644 (file)
@@ -474,7 +474,7 @@ impl<'a> Resolver<'a> {
                 err.span_label(span, &format!("cannot perform const operation using `{}`", name));
 
                 if is_type {
-                    err.note("type parameters may not be used in anonymous constants");
+                    err.note("type parameters may not be used in const expressions");
                 } else {
                     err.help(&format!(
                         "const parameters may only be used as standalone arguments, i.e. `{}`",