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