diff options
| author | Ethan Brierley <ethanboxx@gmail.com> | 2020-10-12 15:57:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 15:57:04 -0500 |
| commit | e62da8ff0b840f20107c17d1a1cd664b123e2b88 (patch) | |
| tree | bf1db74af71f773542b4f636e4a97b329d37e925 | |
| parent | eec443681ef927d1c567c29401237f5c31f49aaf (diff) | |
| download | rust-e62da8ff0b840f20107c17d1a1cd664b123e2b88.tar.gz rust-e62da8ff0b840f20107c17d1a1cd664b123e2b88.zip | |
Remove a little jargon from error
Co-authored-by: varkor <github@varkor.com>
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 99773cd1764..7e17f222a15 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -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. `{}`", |
