rust/tests/ui/parser/break-in-unlabeled-block.rs
2024-02-16 20:02:50 +00:00

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
}
}
}