summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-no-arms-unreachable-after.stderr
blob: a0a3697266d4e8e129455dfa49a2e79f642e4083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: unreachable statement
  --> $DIR/match-no-arms-unreachable-after.rs:8:5
   |
LL |     match v { }
   |     ----------- any code following this expression is unreachable
LL |     let x = 2;
   |     ^^^^^^^^^^ unreachable statement
   |
note: the lint level is defined here
  --> $DIR/match-no-arms-unreachable-after.rs:2:9
   |
LL | #![deny(unreachable_code)]
   |         ^^^^^^^^^^^^^^^^

error: aborting due to previous error