rust/src/test/run-pass/for-loop-fail.rs

2 lines
69 B
Rust
Raw Normal View History

fn main() { let x: ~[int] = ~[]; for x.each |_i| { fail ~"moop"; } }