There was code and resulting error message mismatch:
code was let sref3 = &*mref1;
and error is casting&&mut i32as*mut i32is invalid.
Then the phrase goes: Let's properly reborrow it with let sref3 = &mref1
But it should be the opposite:
let sref3 = &mref1; gives &&mut i32
There was code and resulting error message mismatch: code was
let sref3 = &*mref1;
and error iscasting
&&mut i32as
*mut i32is invalid
. Then the phrase goes: Let's properly reborrow it with let sref3 = &mref1 But it should be the opposite:let sref3 = &mref1;
gives&&mut i32