10 lines
131 B
Rust
10 lines
131 B
Rust
fn foo<T>() {
|
|
1u.bar::<T>(); //~ ERROR: missing `copy`
|
|
}
|
|
|
|
impl methods for uint {
|
|
fn bar<T:copy>() {
|
|
}
|
|
}
|
|
|
|
fn main() {}
|