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

// expect: q: borrows from p, which was freed at the end of its block
fn main() {
	let q;
	{ let p = rt.new(2); q = p + 0; }
	return q[0];
}