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

10 lines
344 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 previous error
2020-06-18 19:52:37 +00:00
For more information about this error, try `rustc --explain E0764`.