Files
doslang-mirror/fec/tests/optional/badprjv.fe
T

14 lines
144 B
Plaintext

// ERROR:9:mem.replace
unit badprjv;
struct Node {
next: ?^Node,
}
fn bad(p: ^Node) -> void {
let q = p.next;
mem.destroy(p);
}