testsuite: Remove structural records from remaining compile-fail tests
This commit is contained in:
parent
15871a7458
commit
58ec84a098
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue