about summary refs log tree commit diff
path: root/tests/ui/label/continue-pointing-to-block-ice-121623.rs
blob: 7047f7a309aafceda8e8b02f85153c294db59700 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! Regression test for ICE #121623. Liveness linting assumes that `continue`s all point to loops.
//! This tests that if a `continue` points to a block, we don't run liveness lints.

fn main() {
    match () {
        _ => 'b: {
            continue 'b;
            //~^ ERROR `continue` pointing to a labeled block
        }
    }
}