aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/while_let_without_label.rs
blob: e04e4b59d1df0a8b7454858a3a8caa1458dab416 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-additional-options "-frust-compile-until=lowering" }

enum Foo {
    A(i32),
}

fn main() {
    let b = Foo::A(15);

    while let Foo::A(x) = b {}
}