rust/tests/ui/uninhabited/diverging-guard.rs
2024-02-16 20:02:50 +00:00

11 lines
113 B
Rust

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