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

11 lines
131 B
Rust
Raw Normal View History

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