File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -665,24 +665,6 @@ fn main() {
665665```
666666"## ,
667667
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-
686668E0133 : r##"
687669Unsafe code was used outside of an unsafe function or block.
688670
You can’t perform that action at this time.
0 commit comments