aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/fresh_thrown_away.zc
blob: 9acec75fee7ee5fc91cf33f5dfc433ee8d63160a (plain) (blame)
1
2
3
4
5
6
// expect error: a new object (or a u result) can't be thrown away
// spec 6.13
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { rt.new(2); return 0; }
// zc0: skip