rust/src/test/run-pass/generic-iter-frame.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

9 lines
193 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); }