2010-10-13 15:53:38 -07:00
|
|
|
// Contrived example? No. It showed up in rustc's resolve pass.
|
|
|
|
|
|
|
|
iter i() -> () {
|
|
|
|
put ();
|
|
|
|
}
|
|
|
|
|
2010-10-28 15:02:00 -07:00
|
|
|
fn foo[T](&T t) {
|
2010-10-13 15:53:38 -07:00
|
|
|
let int x = 10;
|
|
|
|
for each (() j in i()) {
|
|
|
|
log x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(0xdeadbeef_u);
|
|
|
|
}
|