diff options
Diffstat (limited to 'tests/errors/copy_owned.zc')
| -rw-r--r-- | tests/errors/copy_owned.zc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errors/copy_owned.zc b/tests/errors/copy_owned.zc index 862c7ef..a56a81b 100644 --- a/tests/errors/copy_owned.zc +++ b/tests/errors/copy_owned.zc @@ -1,2 +1,5 @@ +namespace; +include rt; + // expect: x: is an owned object and can't be copied -fn main() { let x = new(1); let y = x; return y[0]; } +fn main() { let x = rt.new(1); let y = x; return y[0]; } |
