1 error[E0416]: identifier `tail` is bound more than once in the same pattern
2 --> $DIR/subslice-only-once-semantic-restriction.rs:4:24
4 LL | [1, tail @ .., tail @ ..] => {},
5 | ^^^^ used in a pattern more than once
7 error: `..` can only be used once per slice pattern
8 --> $DIR/subslice-only-once-semantic-restriction.rs:4:31
10 LL | [1, tail @ .., tail @ ..] => {},
11 | -- ^^ can only be used once per slice pattern
13 | previously used here
15 error[E0308]: mismatched types
16 --> $DIR/subslice-only-once-semantic-restriction.rs:11:30
18 LL | const RECOVERY_WITNESS: () = 0;
19 | ^ expected `()`, found integer
21 error: aborting due to 3 previous errors
23 Some errors have detailed explanations: E0308, E0416.
24 For more information about an error, try `rustc --explain E0308`.