summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-9242.rs
blob: 0099e6e2f34b8dab1c20ff08743d2dc4577903c1 (plain)
1
2
3
4
5
6
7
8
enum E {
    X(),
    Y,
}

fn main() {
    let _ = if let E::X() = E::X() { 1 } else { 2 };
}