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