rust/src/test/ui/check-static-immutable-mut-slices.stderr

10 lines
370 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0017]: references in statics may only refer to immutable values
--> $DIR/check-static-immutable-mut-slices.rs:13:37
|
LL | static TEST: &'static mut [isize] = &mut [];
| ^^^^^^^ statics require immutable values
error: aborting due to previous error
For more information about this error, try `rustc --explain E0017`.