rust/tests/ui/label/label_break_value_desugared_break.rs
2023-01-11 09:32:08 +00:00

20 lines
311 B
Rust

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