rust/src/test/run-pass/issue-2550.rs
2012-09-06 10:52:26 -07:00

19 lines
178 B
Rust

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