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

2 lines
68 B
Rust
Raw Normal View History

2012-06-30 18:19:07 -05:00
fn main() { let x: ~[int] = ~[]; for x.each |_i| { fail "moop"; } }