]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-no-arms-unreachable-after.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[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 }