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

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

11 lines
112 B
Rust
Raw Normal View History

2023-05-09 10:39:28 -05:00
// check-pass
enum Void {}
fn main() {
let x: Void;
match x {
_ if { loop {} } => (),
}
}