mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
auto merge of #5716 : dhardy/rust/master, r=thestinger
This commit is contained in:
commit
717ed51f12
@ -1191,7 +1191,7 @@ they are frozen:
|
||||
let x = @mut 5;
|
||||
let y = x;
|
||||
{
|
||||
let y = &*y; // the managed box is now frozen
|
||||
let z = &*y; // the managed box is now frozen
|
||||
// modifying it through x or y will cause a task failure
|
||||
}
|
||||
// the box is now unfrozen again
|
||||
|
Loading…
Reference in New Issue
Block a user