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

17 lines
211 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);
}