summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/match-vec-unreachable.stderr
blob: 672fd92fb5ebd8dacaf18f3ee42aa433edc461a5 (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/match-vec-unreachable.rs:8:9
   |
LL |         [(1, 2), (2, 3), b] => (),
   |         ^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/match-vec-unreachable.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

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

error: unreachable pattern
  --> $DIR/match-vec-unreachable.rs:26:9
   |
LL |         ['a', 'b', 'c'] => {}
   |         ^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors