fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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