aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/alias_scope.zc
blob: b52bfa8117f6a926e579abc4375f7b632f059190 (plain) (blame)
1
2
3
4
5
6
7
8
9
namespace;
include rt;

// expect: q: used after it was given away
fn main() {
	let q;
	{ let p = rt.new(2); q = p + 0; }
	return q[0];
}