about summary refs log tree commit diff
path: root/tests/ui/uninhabited/diverging-guard.rs
blob: 234d630e34505bc204094a1781b1df21abba8960 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

enum Void {}

fn main() {
    let x: Void;
    match x {
        _ if { loop {} } => (),
    }
}