summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/match-vec-fixed.stderr
blob: e388a06cb9a145b53a907e543c6431f8a8c96438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unreachable pattern
  --> $DIR/match-vec-fixed.rs:7:9
   |
LL |         [_, _, _] => {}
   |         ^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/match-vec-fixed.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/match-vec-fixed.rs:11:9
   |
LL |         [_, 1, _] => {}
   |         ^^^^^^^^^

error: aborting due to 2 previous errors