2023-01-03 17:02:25 +00:00
|
|
|
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
|
|
|
|
--> $DIR/issue-93078.rs:11:9
|
|
|
|
|
|
|
|
|
LL | self.modify();
|
2023-06-22 20:30:23 +00:00
|
|
|
| ^^^^ cannot borrow as mutable
|
2023-01-03 17:02:25 +00:00
|
|
|
|
|
|
|
|
= note: as `Self` may be unsized, this call attempts to take `&mut &mut self`
|
|
|
|
= note: however, `&mut self` expands to `self: &mut Self`, therefore `self` cannot be borrowed mutably
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-03 17:02:25 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|