blob: d22886b4a6e6b51a3a20f335e9a656c1baef8002 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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);
}
|