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

10 lines
344 B
Plaintext
Raw Normal View History

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