PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/break-outside-loop.rs

http://github.com/jruderman/rust
Rust | 7 lines | 4 code | 2 blank | 1 comment | 0 complexity | f02316776f5adf4d833cf66c5980f95e MD5 | raw file
1// error-pattern:`break` outside of loop
2fn main() {
3    let pth = break;
4
5    let rs: {t: ~str} = {t: pth};
6
7}