]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/subslice-only-once-semantic-restriction.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / array-slice-vec / subslice-only-once-semantic-restriction.stderr
1 error[E0416]: identifier `tail` is bound more than once in the same pattern
2   --> $DIR/subslice-only-once-semantic-restriction.rs:4:24
3    |
4 LL |         [1, tail @ .., tail @ ..] => {},
5    |                        ^^^^ used in a pattern more than once
6
7 error: `..` can only be used once per slice pattern
8   --> $DIR/subslice-only-once-semantic-restriction.rs:4:31
9    |
10 LL |         [1, tail @ .., tail @ ..] => {},
11    |                    --         ^^ can only be used once per slice pattern
12    |                    |
13    |                    previously used here
14
15 error[E0308]: mismatched types
16   --> $DIR/subslice-only-once-semantic-restriction.rs:11:30
17    |
18 LL | const RECOVERY_WITNESS: () = 0;
19    |                              ^ expected `()`, found integer
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0308, E0416.
24 For more information about an error, try `rustc --explain E0308`.