fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
515 B16 linesraw
1error[E0010]: allocations are not allowed in constants
2  --> $DIR/E0010.rs:4:24
3   |
4LL | const CON : Box<i32> = box 0;
5   |                        ^^^^^ allocation not allowed in constants
6
7error[E0019]: constant contains unimplemented expression type
8  --> $DIR/E0010.rs:4:28
9   |
10LL | const CON : Box<i32> = box 0;
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`.