2012-03-16 10:25:36 -05:00
|
|
|
fn foo<T>() {
|
2012-06-30 06:23:59 -05:00
|
|
|
1u.bar::<T>(); //~ ERROR: missing `copy`
|
2012-03-16 10:25:36 -05:00
|
|
|
}
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
trait bar {
|
2012-09-07 16:52:28 -05:00
|
|
|
fn bar<T:Copy>();
|
2012-07-11 17:00:40 -05:00
|
|
|
}
|
|
|
|
|
2012-08-07 20:10:06 -05:00
|
|
|
impl uint: bar {
|
2012-09-07 16:52:28 -05:00
|
|
|
fn bar<T:Copy>() {
|
2012-03-16 10:25:36 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|