aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/ptr_field_of_new_object.zc
blob: 3d01581d75530040a336d8c9572b696e66e213f6 (plain) (blame)
1
2
3
4
5
6
7
// expect error: use a field of a new object only after binding it to a name
include rt;
struct pt { int x; int y; }
fn main() {
	rt.put_n(rt.new(pt).x);
	return 0;
}