aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/ptr_index_new_object.zc
blob: 7f729faa1b9064f98f1e0776220a270ca5aac18c (plain) (blame)
1
2
3
4
5
6
// expect error: index a new object only after binding it to a name
include rt;
fn main() {
	rt.put_n(rt.new(int)[0]);
	return 0;
}