blob: 6c89dee993a0c5bad1fbea2b9ab40590e862299e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// expect error: p: owned object is never used
// spec 6.5.2 (the checked counterpart of unchecked_toplevel_rest_of_unit)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
int* p = rt.new(int);
pn(1);
return 0;
}
|