aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/copy_owned.zc
blob: a56a81b0661b4f68422e4aecb8526692fb89855e (plain) (blame)
1
2
3
4
5
namespace;
include rt;

// expect: x: is an owned object and can't be copied
fn main() { let x = rt.new(1); let y = x; return y[0]; }