]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-no-arms-unreachable-after.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / test / ui / match / match-no-arms-unreachable-after.rs
1 #![allow(warnings)]
2 #![deny(unreachable_code)]
3
4 enum Void { }
5
6 fn foo(v: Void) {
7     match v { }
8     let x = 2; //~ ERROR unreachable
9 }
10
11 fn main() {
12 }