]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/slice-patterns-reachability.stderr
Rollup merge of #64856 - jonhoo:format-temporaries, r=sfackler
[rust.git] / src / test / ui / pattern / usefulness / slice-patterns-reachability.stderr
1 error: unreachable pattern
2   --> $DIR/slice-patterns-reachability.rs:9:9
3    |
4 LL |         [true, ..] => {}
5    |         ^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/slice-patterns-reachability.rs:2:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14   --> $DIR/slice-patterns-reachability.rs:10:9
15    |
16 LL |         [true] => {}
17    |         ^^^^^^
18
19 error: unreachable pattern
20   --> $DIR/slice-patterns-reachability.rs:15:9
21    |
22 LL |         [.., true] => {}
23    |         ^^^^^^^^^^
24
25 error: unreachable pattern
26   --> $DIR/slice-patterns-reachability.rs:16:9
27    |
28 LL |         [true] => {}
29    |         ^^^^^^
30
31 error: unreachable pattern
32   --> $DIR/slice-patterns-reachability.rs:21:9
33    |
34 LL |         [false, .., true] => {}
35    |         ^^^^^^^^^^^^^^^^^
36
37 error: unreachable pattern
38   --> $DIR/slice-patterns-reachability.rs:22:9
39    |
40 LL |         [false, true] => {}
41    |         ^^^^^^^^^^^^^
42
43 error: aborting due to 6 previous errors
44