aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/continue1.rs
blob: 994312b52cc6673f3e6461c873abc314c11b7f28 (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    let mut a = 1;
    let mut b = 1;

    let _fib = {
        continue; // { dg-error "cannot 'continue' outside of a loop" }
        // { dg-error "failed to type resolve expression" "" { target *-*-* } .-1 }
        123
    };
}