aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/d_kept.zc
blob: dcbfb866ae937b63a139a8796f09716182397d59 (plain) (blame)
1
2
// expect: x: d object was never given away
fn main() { let x = new(3); d*x; x[0] = 1; return 0; }