2023-01-03 11:02:25 -06: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 15:30:23 -05:00
|
|
|
| ^^^^ cannot borrow as mutable
|
2023-01-03 11:02:25 -06: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 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-03 11:02:25 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|