aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/leak_overwrite.zc
blob: 50fecfab235c45690c0bc0ac72d099d0157c76bd (plain) (blame)
1
2
3
4
5
namespace;
include rt;

// expect: x: still owns an object
fn main() { let x = rt.new(1); x = rt.new(2); return x[0]; }