]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/slice-pattern-const.stderr
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / slice-pattern-const.stderr
1 error: unreachable pattern
2   --> $DIR/slice-pattern-const.rs:9:9
3    |
4 LL |         [84, 69, 83, 84] => (),
5    |         ^^^^^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/slice-pattern-const.rs:1:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14   --> $DIR/slice-pattern-const.rs:15:9
15    |
16 LL |         [84, 69, 83, 84] => (),
17    |         ^^^^^^^^^^^^^^^^
18
19 error: unreachable pattern
20   --> $DIR/slice-pattern-const.rs:21:9
21    |
22 LL |         MAGIC_TEST => (),
23    |         ^^^^^^^^^^
24
25 error: unreachable pattern
26   --> $DIR/slice-pattern-const.rs:28:9
27    |
28 LL |         FOO => (),
29    |         ^^^
30
31 error: unreachable pattern
32   --> $DIR/slice-pattern-const.rs:35:9
33    |
34 LL |         BAR => (),
35    |         ^^^
36
37 error: unreachable pattern
38   --> $DIR/slice-pattern-const.rs:43:9
39    |
40 LL |         BOO => (),
41    |         ^^^
42
43 error: unreachable pattern
44   --> $DIR/slice-pattern-const.rs:44:9
45    |
46 LL |         b"" => (),
47    |         ^^^
48
49 error: unreachable pattern
50   --> $DIR/slice-pattern-const.rs:45:9
51    |
52 LL |         _ => (),
53    |         ^
54
55 error: unreachable pattern
56   --> $DIR/slice-pattern-const.rs:51:9
57    |
58 LL |         [true] => {}
59    |         ^^^^^^
60
61 error: aborting due to 9 previous errors
62