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

5 lines
106 B
Rust

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