aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/borrow_escape.zc
blob: ce2448044fb27e93f6f0f6bb7b67dd6b49ce6dd5 (plain) (blame)
1
2
3
// expect: p: is owned and can't be returned
fn f(.m p) { return p; }
fn main() { let x = new(1); f(x); return 0; }