summaryrefslogtreecommitdiffstats
path: root/src/test/ui/label/label_break_value_desugared_break.rs
blob: de883b61111ce5f8d3d962cbc4771e77199e947c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: --edition 2018
#![feature(label_break_value, try_blocks)]

// run-pass
fn main() {
    let _: Result<(), ()> = try {
        'foo: {
            Err(())?;
            break 'foo;
        }
    };
}