rust/src/test/compile-fail/bad-method-typaram-kind.rs
2012-07-17 15:46:43 -07:00

15 lines
175 B
Rust

fn foo<T>() {
1u.bar::<T>(); //~ ERROR: missing `copy`
}
trait bar {
fn bar<T:copy>();
}
impl methods of bar for uint {
fn bar<T:copy>() {
}
}
fn main() {}