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

11 lines
323 B
Plaintext
Raw Normal View History

error[E0596]: cannot borrow immutable `Box` content `*x` as mutable
--> $DIR/issue-36400.rs:15:12
|
14 | let x = Box::new(3);
| - consider changing this to `mut x`
2017-11-20 12:13:27 +00:00
15 | f(&mut *x); //~ ERROR cannot borrow immutable
| ^^ cannot borrow as mutable
error: aborting due to previous error