rust/src/test/ui/check-static-immutable-mut-slices.stderr
2018-12-25 21:08:33 -07:00

10 lines
369 B
Plaintext

error[E0017]: references in statics may only refer to immutable values
--> $DIR/check-static-immutable-mut-slices.rs:3: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`.