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

http://github.com/jruderman/rust · Rust · 1 lines · 1 code · 0 blank · 0 comment · 1 complexity · 36089fd0b163f7c34d60588d6216b115 MD5 · raw file

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