rust/tests/ui/loops/issue-43162.rs
2024-03-03 16:30:48 -03:00

9 lines
119 B
Rust

fn foo() -> bool {
//~^ ERROR E0308
break true; //~ ERROR E0268
}
fn main() {
break {}; //~ ERROR E0268
}