rust/src/test/ui/issue-36400.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

12 lines
391 B
Plaintext

error[E0596]: cannot borrow immutable `Box` content `*x` as mutable
--> $DIR/issue-36400.rs:15:12
|
LL | let x = Box::new(3);
| - consider changing this to `mut x`
LL | f(&mut *x); //~ ERROR cannot borrow immutable
| ^^ cannot borrow as mutable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.