aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/d_into_block.zc
blob: 8222674f6d0295cd768fce3f9b968d5429ae9c25 (plain) (blame)
1
2
3
4
5
namespace;
include rt;

// expect: x: used after it was given away
fn main() { let x = rt.new(1); d*x; { x[0] = 5; } return x[0]; }