]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-bounds-basic.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / trait-bounds-basic.rs
index 6059e5e95ee5ff24ebca322a01ace5e66b01102f..d03496403ad2a629a349cbb94f14f59f4fc801f4 100644 (file)
@@ -8,25 +8,23 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-trait Foo {
-}
 
-fn a(_x: ~Foo:) {
+trait Foo {
 }
 
-fn b(_x: ~Foo:Send) {
+fn b(_x: Box<Foo+Send>) {
 }
 
-fn c(x: ~Foo:Share+Send) {
-    a(x);
+fn c(x: Box<Foo+Sync+Send>) {
+    e(x);
 }
 
-fn d(x: ~Foo:Send) {
-    b(x);
+fn d(x: Box<Foo+Send>) {
+    e(x);
 }
 
-fn e(x: ~Foo) { // sugar for ~Foo:Owned
-    a(x);
+fn e(x: Box<Foo>) {
+    e(x);
 }
 
 pub fn main() { }