summary refs log tree commit diff
path: root/src/test/ui/pattern/slice-pattern-const-2.stderr
blob: 95651ccc401e04579fe87bdf1bf95c6fc255ca97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: unreachable pattern
  --> $DIR/slice-pattern-const-2.rs:9:9
   |
LL |         [4, 5, 6, 7] => (), //~ ERROR unreachable pattern
   |         ^^^^^^^^^^^^
   |
note: lint level defined here
  --> $DIR/slice-pattern-const-2.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/slice-pattern-const-2.rs:15:9
   |
LL |         [4, 5, 6, 7] => (), //~ ERROR unreachable pattern
   |         ^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/slice-pattern-const-2.rs:28:9
   |
LL |         FOO => (), //~ ERROR unreachable pattern
   |         ^^^

error: aborting due to 3 previous errors