12 lines
181 B
Rust
12 lines
181 B
Rust
|
// error-pattern:instantiating a copyable type parameter with a noncopyable
|
||
|
fn foo<T>() {
|
||
|
1u.bar::<T>();
|
||
|
}
|
||
|
|
||
|
impl methods for uint {
|
||
|
fn bar<T:copy>() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|