// xfail-test
// expected error: mismatched kinds

resource r(i: @mutable int) {
    *i = *i + 1;
}

fn main() {
    let i = @mutable 0;
    {
        // Can't do this copy
        let x = ~~~{y: r(i)};
        let z = x;
    }
    log_err *i;
}
Add an xfailed test for bogus deep copying of things containing resources
Add an xfailed test for bogus deep copying of things containing resources
