// expect: x: d object was never given away fn main() { let x = new(3); d*x; x[0] = 1; return 0; }