summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/resolve-label.rs
blob: ac5410cd355223de7678937f41ce8490d953f687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn f() {
    'l: loop {
        fn g() {
            loop {
                break 'l; //~ ERROR use of unreachable label
            }
        }
    }

    loop { 'w: while break 'w { } }
}

fn main() {}