rust/src/test/compile-fail/break-outside-loop.rs
Marijn Haverbeke e62ddf4898 More rigorous reuse of cleanup sequences
In both landing pads and break/cont/ret unwinding.

Closes #300
2012-02-16 16:37:33 +01:00

8 lines
108 B
Rust

// error-pattern:break outside a loop
fn main() {
let pth = break;
let rs: {t: str} = {t: pth};
}