aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/leak_overwrite.zc
blob: d19b5fd3cb4d943346516a8a1df73de53a569a2d (plain) (blame)
1
2
// expect: x: still owns an object
fn main() { let x = new(1); x = new(2); return x[0]; }