]> git.proxmox.com Git - rustc.git/blob - tests/ui/pattern/usefulness/slice-patterns-reachability.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / pattern / usefulness / slice-patterns-reachability.stderr
1 error: unreachable pattern
2 --> $DIR/slice-patterns-reachability.rs:8:9
3 |
4 LL | [true, ..] => {}
5 | ^^^^^^^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/slice-patterns-reachability.rs:1:9
9 |
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14 --> $DIR/slice-patterns-reachability.rs:9:9
15 |
16 LL | [true] => {}
17 | ^^^^^^
18
19 error: unreachable pattern
20 --> $DIR/slice-patterns-reachability.rs:14:9
21 |
22 LL | [.., true] => {}
23 | ^^^^^^^^^^
24
25 error: unreachable pattern
26 --> $DIR/slice-patterns-reachability.rs:15:9
27 |
28 LL | [true] => {}
29 | ^^^^^^
30
31 error: unreachable pattern
32 --> $DIR/slice-patterns-reachability.rs:20:9
33 |
34 LL | [false, .., true] => {}
35 | ^^^^^^^^^^^^^^^^^
36
37 error: unreachable pattern
38 --> $DIR/slice-patterns-reachability.rs:21:9
39 |
40 LL | [false, true] => {}
41 | ^^^^^^^^^^^^^
42
43 error: aborting due to 6 previous errors
44