fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
369 B9 linesraw
1error[E0017]: references in statics may only refer to immutable values
2  --> $DIR/check-static-immutable-mut-slices.rs:3:37
3   |
4LL | static TEST: &'static mut [isize] = &mut [];
5   |                                     ^^^^^^^ statics require immutable values
6
7error: aborting due to previous error
8
9For more information about this error, try `rustc --explain E0017`.