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

4 lines
100 B
Rust

// error-pattern:moop
extern mod std;
fn main() { for uint::range(0u, 10u) |_i| { fail ~"moop"; } }