rust/src/test/run-pass/generic-iter-frame.rs

9 lines
192 B
Rust

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