rust/src/test/run-pass/issue-333.rs
2011-07-27 15:54:33 +02:00

5 lines
124 B
Rust

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