2017-10-04 15:12:01 +02:00
|
|
|
error[E0596]: cannot borrow immutable `Box` content `*x` as mutable
|
|
|
|
--> $DIR/issue-36400.rs:15:12
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let x = Box::new(3);
|
2017-10-04 15:12:01 +02:00
|
|
|
| - consider changing this to `mut x`
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | f(&mut *x); //~ ERROR cannot borrow immutable
|
2017-10-04 15:12:01 +02:00
|
|
|
| ^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0596"
|