rust/src/test/run-pass/issue-333.rs
Brian Anderson 394b8fcd1c Add test case for issue #333. Closes #333
This has been fixed by a mystery hacker.
2011-07-08 17:43:44 -07:00

12 lines
128 B
Rust

fn quux[T](&T x) -> T{
auto f = id[T];
ret f(x);
}
fn id[T](&T x) -> T {
ret x;
}
fn main() {
assert quux(10) == 10;
}