]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/match-vec-invalid.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / match-vec-invalid.stderr
1 error[E0416]: identifier `tail` is bound more than once in the same pattern
2   --> $DIR/match-vec-invalid.rs:4:24
3    |
4 LL |         [1, tail @ .., tail @ ..] => {},
5    |                        ^^^^ used in a pattern more than once
6
7 error[E0658]: subslice patterns are unstable
8   --> $DIR/match-vec-invalid.rs:4:13
9    |
10 LL |         [1, tail @ .., tail @ ..] => {},
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[E0658]: subslice patterns are unstable
17   --> $DIR/match-vec-invalid.rs:4:24
18    |
19 LL |         [1, tail @ .., tail @ ..] => {},
20    |                        ^^^^^^^^^
21    |
22    = note: for more information, see https://github.com/rust-lang/rust/issues/62254
23    = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
24
25 error: `..` can only be used once per slice pattern
26   --> $DIR/match-vec-invalid.rs:4:31
27    |
28 LL |         [1, tail @ .., tail @ ..] => {},
29    |                    --         ^^ can only be used once per slice pattern
30    |                    |
31    |                    previously used here
32
33 error[E0308]: mismatched types
34   --> $DIR/match-vec-invalid.rs:13:30
35    |
36 LL | const RECOVERY_WITNESS: () = 0;
37    |                              ^ expected `()`, found integer
38
39 error: aborting due to 5 previous errors
40
41 Some errors have detailed explanations: E0308, E0416, E0658.
42 For more information about an error, try `rustc --explain E0308`.