rust/src/test/ui/label/label_break_value_desugared_break.rs

13 lines
216 B
Rust
Raw Normal View History

// compile-flags: --edition 2018
#![feature(label_break_value, try_blocks)]
// run-pass
fn main() {
let _: Result<(), ()> = try {
'foo: {
Err(())?;
break 'foo;
}
};
}