]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/parameterized-trait-with-bounds.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / parameterized-trait-with-bounds.rs
index e22bc4247e096a45453e753159a0b90c8d664a0c..840e58848a742f59b31af183bcb70508365a05de 100644 (file)
@@ -10,6 +10,7 @@
 
 #![allow(dead_code)]
 
+
 trait A<T> {}
 trait B<T, U> {}
 trait C<'a, U> {}
@@ -18,10 +19,10 @@ mod foo {
     pub trait D<'a, T> {}
 }
 
-fn foo1<T>(_: &A<T>: Send) {}
-fn foo2<T>(_: ~A<T>: Send + Share) {}
-fn foo3<T>(_: ~B<int, uint>: 'static) {}
-fn foo4<'a, T>(_: ~C<'a, T>: 'static + Send) {}
-fn foo5<'a, T>(_: ~foo::D<'a, T>: 'static + Send) {}
+fn foo1<T>(_: &(A<T> + Send)) {}
+fn foo2<T>(_: Box<A<T> + Send + Sync>) {}
+fn foo3<T>(_: Box<B<int, uint> + 'static>) {}
+fn foo4<'a, T>(_: Box<C<'a, T> + 'static + Send>) {}
+fn foo5<'a, T>(_: Box<foo::D<'a, T> + 'static + Send>) {}
 
 pub fn main() {}