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

12 lines
181 B
Rust
Raw Normal View History

// error-pattern:instantiating a copyable type parameter with a noncopyable
fn foo<T>() {
1u.bar::<T>();
}
impl methods for uint {
fn bar<T:copy>() {
}
}
fn main() {}