diff options
Diffstat (limited to 'src/test/run-pass/objects-owned-object-borrowed-method-header.rs')
| -rw-r--r-- | src/test/run-pass/objects-owned-object-borrowed-method-header.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/objects-owned-object-borrowed-method-header.rs b/src/test/run-pass/objects-owned-object-borrowed-method-header.rs index c39e79e0528..456a5c5d297 100644 --- a/src/test/run-pass/objects-owned-object-borrowed-method-header.rs +++ b/src/test/run-pass/objects-owned-object-borrowed-method-header.rs @@ -14,7 +14,7 @@ // Test invoked `&self` methods on owned objects where the values -// closed over contain managed values. This implies that the ~ boxes +// closed over contain managed values. This implies that the boxes // will have headers that must be skipped over. trait FooTrait { @@ -32,10 +32,10 @@ impl FooTrait for BarStruct { } pub fn main() { - let foos: Vec<~FooTrait:> = vec!( - ~BarStruct{ x: @0 } as ~FooTrait:, - ~BarStruct{ x: @1 } as ~FooTrait:, - ~BarStruct{ x: @2 } as ~FooTrait: + let foos: Vec<Box<FooTrait:>> = vec!( + box BarStruct{ x: @0 } as Box<FooTrait:>, + box BarStruct{ x: @1 } as Box<FooTrait:>, + box BarStruct{ x: @2 } as Box<FooTrait:> ); for i in range(0u, foos.len()) { |
