blob: 16baa73b56a8c3446589fc83b3d5d5a09887cfb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#[forbid(managed_heap_memory)];
type Foo = { //~ ERROR type uses managed
x: @int
};
fn main() {
let _x : Foo = {x : @10};
//~^ ERROR type uses managed
//~^^ ERROR type uses managed
}
|