aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/borrow_to_global.zc
blob: 2616c2dfd3f2e2c278037d508bfc23faf3799fc3 (plain) (blame)
1
2
3
4
5
6
7
8
// expect error: p: is not an owner
// spec 6.9.1
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int* g;
void f(int*.m p) { g = p; }
fn main() { return 0; }
// zc0: skip