|
1 | 1 | error: expected one of `)`, `,`, or `@`, found `[` |
2 | | - --> $DIR/pat-lt-bracket-6.rs:2:19 |
| 2 | + --> $DIR/pat-lt-bracket-6.rs:5:19 |
3 | 3 | | |
4 | 4 | LL | let Test(&desc[..]) = x; |
5 | 5 | | ^ expected one of `)`, `,`, or `@` here |
6 | 6 |
|
7 | | -error[E0425]: cannot find value `x` in this scope |
8 | | - --> $DIR/pat-lt-bracket-6.rs:2:27 |
9 | | - | |
10 | | -LL | let Test(&desc[..]) = x; |
11 | | - | ^ not found in this scope |
12 | | - |
13 | | -error[E0531]: cannot find tuple struct/variant `Test` in this scope |
14 | | - --> $DIR/pat-lt-bracket-6.rs:2:9 |
15 | | - | |
16 | | -LL | let Test(&desc[..]) = x; |
17 | | - | ^^^^ not found in this scope |
18 | | - |
19 | 7 | error[E0658]: subslice patterns are unstable |
20 | | - --> $DIR/pat-lt-bracket-6.rs:2:20 |
| 8 | + --> $DIR/pat-lt-bracket-6.rs:5:20 |
21 | 9 | | |
22 | 10 | LL | let Test(&desc[..]) = x; |
23 | 11 | | ^^ |
24 | 12 | | |
25 | 13 | = note: for more information, see https://github.com/rust-lang/rust/issues/62254 |
26 | 14 | = help: add `#![feature(slice_patterns)]` to the crate attributes to enable |
27 | 15 |
|
28 | | -error: aborting due to 4 previous errors |
| 16 | +error[E0308]: mismatched types |
| 17 | + --> $DIR/pat-lt-bracket-6.rs:9:30 |
| 18 | + | |
| 19 | +LL | const RECOVERY_WITNESS: () = 0; |
| 20 | + | ^ expected (), found integer |
| 21 | + | |
| 22 | + = note: expected type `()` |
| 23 | + found type `{integer}` |
| 24 | + |
| 25 | +error: aborting due to 3 previous errors |
29 | 26 |
|
30 | | -Some errors have detailed explanations: E0425, E0658. |
31 | | -For more information about an error, try `rustc --explain E0425`. |
| 27 | +Some errors have detailed explanations: E0308, E0658. |
| 28 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments