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

12 lines
219 B
Rust
Raw Normal View History

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