aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/copy_owned.zc
blob: 862c7efeae8308f9899b779619b23dec409d0e40 (plain) (blame)
1
2
// expect: x: is an owned object and can't be copied
fn main() { let x = new(1); let y = x; return y[0]; }