summaryrefslogtreecommitdiffstats
path: root/tests/ui/for-loop-while/loop-labeled-break-value.rs
blob: cc8f826983b6a52d5487027c2a84b31b93a4dfbf (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// pretty-expanded FIXME #23616

fn main() {
    'outer: loop {
        let _: i32 = loop { break 'outer };
    }
    'outer2: loop {
        let _: i32 = loop { loop { break 'outer2 } };
    }
}