blob: 9b5e084bd375134372d1863b936b27a527bcc498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error[E0596]: cannot borrow immutable item `*x` as mutable
--> $DIR/borrowck-object-mutability.rs:19:5
|
LL | x.borrowed_mut(); //~ ERROR cannot borrow
| ^ cannot borrow as mutable
error[E0596]: cannot borrow immutable item `*x` as mutable
--> $DIR/borrowck-object-mutability.rs:29:5
|
LL | x.borrowed_mut(); //~ ERROR cannot borrow
| ^ cannot borrow as mutable
|
= note: the value which is causing this path not to be mutable is...: `x`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0596`.
|