]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-static-immutable-mut-slices.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / check-static-immutable-mut-slices.stderr
1 error[E0764]: mutable references are not allowed in the final value of statics
2   --> $DIR/check-static-immutable-mut-slices.rs:3:37
3    |
4 LL | static TEST: &'static mut [isize] = &mut [];
5    |                                     ^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0764`.