aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/give_m.zc
blob: cd678960cfbeafa2969e0825cfb8e500d48b74f8 (plain) (blame)
1
2
3
// expect: x: is m; write d*x
fn take(.d p) { return p[0]; }
fn main() { let x = new(3); take(x); return 0; }