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

15 lines
161 B
Rust
Raw Normal View History

fn foo<T>() {
1u.bar::<T>(); //~ ERROR: missing `copy`
}
trait bar {
fn bar<T:copy>();
}
2012-08-07 20:10:06 -05:00
impl uint: bar {
fn bar<T:copy>() {
}
}
fn main() {}