aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/global_then_use.zc
blob: ce01872902db32aa209f33cdd839741af695181c (plain) (blame)
1
2
3
4
5
6
namespace;
include rt;

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