12 lines
198 B
Rust
12 lines
198 B
Rust
|
#[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
|
||
|
}
|