2017-10-04 13:12:01 +00:00
|
|
|
error[E0596]: cannot borrow immutable `Box` content `*x` as mutable
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-36400.rs:5:12
|
2017-10-04 13:12:01 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | let x = Box::new(3);
|
2018-09-12 18:13:40 +00:00
|
|
|
| - help: make this binding mutable: `mut x`
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | f(&mut *x); //~ ERROR cannot borrow immutable
|
2017-10-04 13:12:01 +00:00
|
|
|
| ^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0596`.
|