diff options
| author | Ethan Brierley <ethanboxx@gmail.com> | 2020-10-12 15:58:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 15:58:06 -0500 |
| commit | facb38d1dcdc7a311f96f965389a837829f8f8d6 (patch) | |
| tree | 719ac0e99569fc97e4eb92c7c381052600ac1432 | |
| parent | e62da8ff0b840f20107c17d1a1cd664b123e2b88 (diff) | |
| download | rust-facb38d1dcdc7a311f96f965389a837829f8f8d6.tar.gz rust-facb38d1dcdc7a311f96f965389a837829f8f8d6.zip | |
A little rewording
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 7e17f222a15..774a147c114 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -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)); |
