diff options
Diffstat (limited to 'src/test/compile-fail/lint-owned-heap-memory.rs')
| -rw-r--r-- | src/test/compile-fail/lint-owned-heap-memory.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/compile-fail/lint-owned-heap-memory.rs b/src/test/compile-fail/lint-owned-heap-memory.rs index 859dd127b97..c9688ad49d7 100644 --- a/src/test/compile-fail/lint-owned-heap-memory.rs +++ b/src/test/compile-fail/lint-owned-heap-memory.rs @@ -10,11 +10,12 @@ #![forbid(owned_heap_memory)] + struct Foo { - x: ~int //~ ERROR type uses owned + x: Box<int> //~ ERROR type uses owned } fn main() { - let _x : Foo = Foo {x : ~10}; + let _x : Foo = Foo {x : box 10}; //~^ ERROR type uses owned } |
