diff options
| author | bors <bors@rust-lang.org> | 2013-12-14 23:02:15 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-14 23:02:15 -0800 |
| commit | 7f5787ac26e66f42323fa417cb4b0356b22e7da5 (patch) | |
| tree | 82d5b4742d97c77f8bbb2944a0d9a7df0fe0dd28 /src/test/compile-fail/lint-heap-memory.rs | |
| parent | 8f6df87c1d876895a7e313728b43d9710ae682bb (diff) | |
| parent | 6747d0738a88e7a94171ec7b3f42c837352bc5be (diff) | |
| download | rust-7f5787ac26e66f42323fa417cb4b0356b22e7da5.tar.gz rust-7f5787ac26e66f42323fa417cb4b0356b22e7da5.zip | |
auto merge of #10932 : alexcrichton/rust/feature-update, r=cmr
Diffstat (limited to 'src/test/compile-fail/lint-heap-memory.rs')
| -rw-r--r-- | src/test/compile-fail/lint-heap-memory.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/test/compile-fail/lint-heap-memory.rs b/src/test/compile-fail/lint-heap-memory.rs index b550c227898..c02da1beeb7 100644 --- a/src/test/compile-fail/lint-heap-memory.rs +++ b/src/test/compile-fail/lint-heap-memory.rs @@ -19,6 +19,20 @@ struct Foo { struct Bar { x: ~int } //~ ERROR type uses owned fn main() { - let _x : Bar = Bar {x : ~10}; + let _x : Bar = Bar {x : ~10}; //~ ERROR type uses owned + + @2; //~ ERROR type uses managed + @[1]; //~ ERROR type uses managed + //~^ ERROR type uses managed + fn f(_: @Clone) {} //~ ERROR type uses managed + @""; //~ ERROR type uses managed + //~^ ERROR type uses managed + + ~2; //~ ERROR type uses owned + ~[1]; //~ ERROR type uses owned + //~^ ERROR type uses owned + fn g(_: ~Clone) {} //~ ERROR type uses owned + ~""; //~ ERROR type uses owned //~^ ERROR type uses owned + proc() {}; //~ ERROR type uses owned } |
