rust/tests/ui/loops/issue-43162.rs

9 lines
119 B
Rust

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