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

12 lines
401 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-02-19 20:40:25 +00:00
If you want more information on this error, try using "rustc --explain E0596"