testsuite: Remove structural records from remaining compile-fail tests

This commit is contained in:
Tim Chevalier 2013-01-28 18:36:27 -08:00
parent 15871a7458
commit 58ec84a098
3 changed files with 14 additions and 15 deletions

View File

@ -10,12 +10,13 @@
#[forbid(heap_memory)];
type Foo = { //~ ERROR type uses managed
x: @int
};
struct Foo {
x: @int //~ ERROR type uses managed
}
struct Bar { x: ~int } //~ ERROR type uses owned
fn main() {
let _x : { x : ~int } = {x : ~10};
let _x : Bar = Bar {x : ~10};
//~^ ERROR type uses owned
//~^^ ERROR type uses owned
}

View File

@ -10,12 +10,11 @@
#[forbid(managed_heap_memory)];
type Foo = { //~ ERROR type uses managed
x: @int
};
struct Foo {
x: @int //~ ERROR type uses managed
}
fn main() {
let _x : Foo = {x : @10};
let _x : Foo = Foo {x : @10};
//~^ ERROR type uses managed
//~^^ ERROR type uses managed
}

View File

@ -10,12 +10,11 @@
#[forbid(owned_heap_memory)];
type Foo = { //~ ERROR type uses owned
x: ~int
};
struct Foo {
x: ~int //~ ERROR type uses owned
}
fn main() {
let _x : Foo = {x : ~10};
let _x : Foo = Foo {x : ~10};
//~^ ERROR type uses owned
//~^^ ERROR type uses owned
}