rust/tests/ui/parser/break-in-unlabeled-block.rs

12 lines
220 B
Rust

//@ run-rustfix
fn main() {
{
break (); //~ ERROR `break` outside of a loop or labeled block
}
{
{
break (); //~ ERROR `break` outside of a loop or labeled block
}
}
}