rust/src/test/compile-fail/bad-method-typaram-kind.rs

15 lines
175 B
Rust
Raw Normal View History

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() {}