9 lines
203 B
Rust
9 lines
203 B
Rust
fn main() {
|
|
let mut _a = 3;
|
|
let _b = &mut _a;
|
|
{
|
|
let _c = &*_b; //~ ERROR illegal borrow unless pure
|
|
_a = 4; //~ NOTE impure due to assigning to mutable local variable
|
|
}
|
|
}
|