rust/src/test/run-pass/issue-333.rs
Marijn Haverbeke 60ae1590af Switch to new param kind bound syntax
And remove support for the old syntax
2012-01-05 15:50:02 +01:00

6 lines
145 B
Rust

fn quux<T: copy>(x: T) -> T { let f = bind id::<T>(_); ret f(x); }
fn id<T: copy>(x: T) -> T { ret x; }
fn main() { assert (quux(10) == 10); }