]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-6.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / pat-lt-bracket-6.stderr
1 error: expected one of `)`, `,`, `@`, or `|`, found `[`
2   --> $DIR/pat-lt-bracket-6.rs:5:19
3    |
4 LL |     let Test(&desc[..]) = x;
5    |                   ^ expected one of `)`, `,`, `@`, or `|`
6
7 error[E0658]: subslice patterns are unstable
8   --> $DIR/pat-lt-bracket-6.rs:5:20
9    |
10 LL |     let Test(&desc[..]) = x;
11    |                    ^^
12    |
13    = note: for more information, see https://github.com/rust-lang/rust/issues/62254
14    = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
15
16 error[E0308]: mismatched types
17   --> $DIR/pat-lt-bracket-6.rs:10:30
18    |
19 LL | const RECOVERY_WITNESS: () = 0;
20    |                              ^ expected (), found integer
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0308, E0658.
25 For more information about an error, try `rustc --explain E0308`.