]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/objects-owned-object-borrowed-method-header.rs
Register new snapshots
[rust.git] / src / test / run-pass / objects-owned-object-borrowed-method-header.rs
index be1b135ddc96626374ea8721df7b0e296a419dfd..815488b8c66e0e792cb8860bd362c9e85ca53aae 100644 (file)
@@ -31,10 +31,10 @@ fn foo(&self) -> uint {
 }
 
 pub fn main() {
-    let foos: Vec<Box<FooTrait:>> = vec!(
-        box BarStruct{ x: box(GC) 0 } as Box<FooTrait:>,
-        box BarStruct{ x: box(GC) 1 } as Box<FooTrait:>,
-        box BarStruct{ x: box(GC) 2 } as Box<FooTrait:>
+    let foos: Vec<Box<FooTrait>> = vec!(
+        box BarStruct{ x: box(GC) 0 } as Box<FooTrait>,
+        box BarStruct{ x: box(GC) 1 } as Box<FooTrait>,
+        box BarStruct{ x: box(GC) 2 } as Box<FooTrait>
     );
 
     for i in range(0u, foos.len()) {