rust/src/test/run-pass/issue-333.rs

5 lines
124 B
Rust
Raw Normal View History

2011-07-27 07:19:39 -05:00
fn quux[T](x: &T) -> T { let f = id[T]; ret f(x); }
2011-07-27 07:19:39 -05:00
fn id[T](x: &T) -> T { ret x; }
2011-07-27 07:19:39 -05:00
fn main() { assert (quux(10) == 10); }