Files
rust/tests/ui/rfcs/rfc-0000-never_patterns/ICE-133063-never-arm-no-otherwise-block.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
278 B
Rust
Raw Normal View History

#![feature(never_type)]
#![feature(never_patterns)]
#![allow(incomplete_features)]
enum Void {}
fn foo(x: Void) {
loop {
match x {
(!|!) if false => {} //~ ERROR a never pattern is always unreachable
_ => {}
}
}
}
fn main() {}