aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/stmt_fresh_value_thrown_away.zc
blob: 999f8c042e795c1532af72a28feece7515bba209 (plain) (blame)
1
2
3
4
5
// expect error: a new object (or a u result) can't be thrown away
// spec 4.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { rt.new(int); return 0; }