rust/src/test/run-pass/issue-2550.rs
2012-08-17 10:13:45 -07:00

16 lines
172 B
Rust

struct C {
let x: uint;
new(x: uint) {
self.x = x;
}
}
fn f<T:copy>(_x: T) {
}
#[deny(non_implicitly_copyable_typarams)]
fn main() {
f(C(1u));
}