aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/discard_u.zc
blob: 85b38c4a72b0f83148afb1ded670e7624a7386d0 (plain) (blame)
1
2
3
4
5
6
namespace;
include rt;

// expect: a new object (or a u result) can't be thrown away
.u mk() { let p = rt.new(1); return u*p; }
fn main() { mk(); return 0; }