Hi all,
When I run this code
fn main() {
let mut x = @mut 2;
let y = x;
{
let z = & *y;
x = @mut 3;
io::println(fmt!("%?" , y));
*y = 5;
io::println(fmt!("%?" , y));
}
}
following occurs.
rust: task failed at 'borrowed', ???:0
rust: domain main @0xef89c0 root task failed
can anyone explain? (using compiler 0.6 )
--
Piyush Agarwal
Please don’t print this e-mail unless you really need to!
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev