1 2 3 4 5 6 7 8 9 10
fn foo<T>() { 1u.bar::<T>(); //~ ERROR: missing `copy` } impl methods for uint { fn bar<T:copy>() { } } fn main() {}