aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/d_into_block.zc
blob: 2d7f526eb59c9ddc5009225a1329037bb2036304 (plain) (blame)
1
2
// expect: x: used after it was given away
fn main() { let x = new(1); d*x; { x[0] = 5; } return x[0]; }