rust/tests/ui/check-static-immutable-mut-slices.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
346 B
Plaintext
Raw Normal View History

2021-01-16 18:05:51 +00:00
error[E0764]: mutable references are not allowed in the final value of statics
2018-12-25 15:56:47 +00:00
--> $DIR/check-static-immutable-mut-slices.rs:3:37
2018-08-08 12:28:26 +00:00
|
LL | static TEST: &'static mut [isize] = &mut [];
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
2020-06-18 19:52:37 +00:00
For more information about this error, try `rustc --explain E0764`.