We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec74d35 commit ccbe787Copy full SHA for ccbe787
src/librustc_mir/diagnostics.rs
@@ -665,24 +665,6 @@ fn main() {
665
```
666
"##,
667
668
-E0022: r##"
669
-Constant functions are not allowed to mutate anything. Thus, binding to an
670
-argument with a mutable pattern is not allowed. For example,
671
-
672
-```compile_fail
673
-const fn foo(mut x: u8) {
674
- // do stuff
675
-}
676
-```
677
678
-Is incorrect because the function body may not mutate `x`.
679
680
-Remove any mutable bindings from the argument list to fix this error. In case
681
-you need to mutate the argument, try lazily initializing a global variable
682
-instead of using a `const fn`, or refactoring the code to a functional style to
683
-avoid mutation if possible.
684
-"##,
685
686
E0133: r##"
687
Unsafe code was used outside of an unsafe function or block.
688
0 commit comments