fork/rust

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

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

1.39.0
561 B16 linesraw
1error[E0010]: allocations are not allowed in statics
2  --> $DIR/static-mut-not-constant.rs:3:28
3   |
4LL | static mut a: Box<isize> = box 3;
5   |                            ^^^^^ allocation not allowed in statics
6
7error[E0019]: static contains unimplemented expression type
8  --> $DIR/static-mut-not-constant.rs:3:32
9   |
10LL | static mut a: Box<isize> = box 3;
11   |                                ^
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0010, E0019.
16For more information about an error, try `rustc --explain E0010`.