]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/slice-pattern-const-2.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / slice-pattern-const-2.stderr
CommitLineData
0731742a 1error: unreachable pattern
1b1a35ee 2 --> $DIR/slice-pattern-const-2.rs:9:9
0731742a 3 |
1b1a35ee
XL
4LL | [4, 5, 6, 7] => (),
5 | ^^^^^^^^^^^^
0731742a 6 |
74b04a01 7note: the lint level is defined here
0731742a
XL
8 --> $DIR/slice-pattern-const-2.rs:1:9
9 |
10LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
1b1a35ee
XL
13error: unreachable pattern
14 --> $DIR/slice-pattern-const-2.rs:15:9
15 |
16LL | [4, 5, 6, 7] => (),
17 | ^^^^^^^^^^^^
18
19error: unreachable pattern
20 --> $DIR/slice-pattern-const-2.rs:21:9
21 |
22LL | MAGIC_TEST => (),
23 | ^^^^^^^^^^
24
25error: unreachable pattern
26 --> $DIR/slice-pattern-const-2.rs:28:9
27 |
28LL | FOO => (),
29 | ^^^
30
31error: aborting due to 4 previous errors
0731742a 32