blob: 58db7105774b252edcef9d116518a4068a4691c2 (
plain) (
blame)
1
2
3
4
5
6
|
// expect error: b: is an owned object and can't be copied into another variable
// spec 6.6
include rt;
struct node { int value; node* prev; node* next; };
fn main() { node* p; { node* a = rt.new(node); node* b = rt.new(node); a.next = b; b.prev = a; p = b; } rt.put_n(p.prev.value); }
// zc0: skip
|