rust/src/test/run-pass/generic-iter-frame.rs
2011-07-27 15:54:33 +02:00

9 lines
No EOL
194 B
Rust

// Contrived example? No. It showed up in rustc's resolve pass.
iter i() { put (); }
fn foo[T](t: &T) { let x: int = 10; for each j: () in i() { log x; } }
fn main() { foo(0xdeadbeef_u); }