aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/alias_scope.zc
blob: b51bec5ad5313f88f97b5a0fca6874941219aea5 (plain) (blame)
1
2
3
4
5
6
// expect: q: used after it was given away
fn main() {
	let q;
	{ let p = new(2); q = p + 0; }
	return q[0];
}