19 lines
178 B
Rust
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));
|
|
}
|