fork/rust

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

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

1.39.0
796 B27 linesraw
1error[E0019]: constant contains unimplemented expression type
2  --> $DIR/const-match-pattern-arm.rs:3:23
3   |
4LL | const x: bool = match Some(true) {
5   |                       ^^^^^^^^^^
6
7error[E0019]: constant contains unimplemented expression type
8  --> $DIR/const-match-pattern-arm.rs:5:5
9   |
10LL |     Some(value) => true,
11   |     ^^^^^^^^^^^
12
13error[E0019]: constant contains unimplemented expression type
14  --> $DIR/const-match-pattern-arm.rs:11:11
15   |
16LL |     match Some(true) {
17   |           ^^^^^^^^^^
18
19error[E0019]: constant contains unimplemented expression type
20  --> $DIR/const-match-pattern-arm.rs:13:9
21   |
22LL |         Some(value) => true,
23   |         ^^^^^^^^^^^
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0019`.