diff options
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/const_eval.ftl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/const_eval.ftl b/compiler/rustc_error_messages/locales/en-US/const_eval.ftl index 30de7d5a24f..f1a8c8c47cc 100644 --- a/compiler/rustc_error_messages/locales/en-US/const_eval.ftl +++ b/compiler/rustc_error_messages/locales/en-US/const_eval.ftl @@ -26,3 +26,22 @@ const-eval-raw-ptr-comparison = .note = see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information const-eval-panic-non-str = argument to `panic!()` in a const context must have type `&str` + +const-eval-mut-deref = + mutation through a reference is not allowed in { $kind -> + [constant function] constant functions + [static] statics + *[constant] constants + } + +const-eval-transient-mut-borrow = mutable references are not allowed in { $kind -> + [constant function] constant functions + [static] statics + *[constant] constants + } + +const-eval-transient-mut-borrow-raw = raw mutable references are not allowed in { $kind -> + [constant function] constant functions + [static] statics + *[constant] constants + } |
