rust/src/test/ui/issues/issue-36400.stderr

12 lines
391 B
Plaintext
Raw Normal View History

error[E0596]: cannot borrow immutable `Box` content `*x` as mutable
--> $DIR/issue-36400.rs:15:12
|
2018-02-23 00:42:32 +00:00
LL | let x = Box::new(3);
| - consider changing this to `mut x`
2018-02-23 00:42:32 +00:00
LL | f(&mut *x); //~ ERROR cannot borrow immutable
| ^^ 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`.