fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
471 B15 linesraw
1error[E0019]: constant contains unimplemented expression type
2  --> $DIR/const-if.rs:1:20
3   |
4LL | const _X: i32 = if true { 5 } else { 6 };
5   |                    ^^^^
6
7error[E0019]: constant contains unimplemented expression type
8  --> $DIR/const-if.rs:1:17
9   |
10LL | const _X: i32 = if true { 5 } else { 6 };
11   |                 ^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0019`.