]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-match-pattern-arm.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-match-pattern-arm.stderr
1 error[E0019]: constant contains unimplemented expression type
2   --> $DIR/const-match-pattern-arm.rs:3:23
3    |
4 LL | const x: bool = match Some(true) {
5    |                       ^^^^^^^^^^
6
7 error[E0019]: constant contains unimplemented expression type
8   --> $DIR/const-match-pattern-arm.rs:5:5
9    |
10 LL |     Some(value) => true,
11    |     ^^^^^^^^^^^
12
13 error[E0019]: constant contains unimplemented expression type
14   --> $DIR/const-match-pattern-arm.rs:11:11
15    |
16 LL |     match Some(true) {
17    |           ^^^^^^^^^^
18
19 error[E0019]: constant contains unimplemented expression type
20   --> $DIR/const-match-pattern-arm.rs:13:9
21    |
22 LL |         Some(value) => true,
23    |         ^^^^^^^^^^^
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0019`.