aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/recast_plain.zc
blob: 7d26f3ce1e2608fc67e5b543588ae51a1f891243 (plain) (blame)
1
2
3
4
5
6
namespace;
include rt;

// expect: p: isn't an owned object, so there is no ownership to recast
word sink;
fn main() { word p = m*rt.new(4); sink = d*p; return 0; }