1 2 3 4 5 6 7 8
fn foo() -> bool { //~^ ERROR E0308 break true; //~ ERROR E0268 } fn main() { break {}; //~ ERROR E0268 }