rust/tests/ui/uninhabited/diverging-guard.rs

11 lines
113 B
Rust

//@ check-pass
enum Void {}
fn main() {
let x: Void;
match x {
_ if { loop {} } => (),
}
}