12 lines
399 B
Plaintext
12 lines
399 B
Plaintext
error[E0596]: cannot borrow immutable item `*x` as mutable
|
|
--> $DIR/issue-36400.rs:15:7
|
|
|
|
|
LL | let x = Box::new(3);
|
|
| - help: consider changing this to be mutable: `mut x`
|
|
LL | f(&mut *x); //~ ERROR cannot borrow immutable
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|