]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-93078.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-93078.stderr
1 error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
2   --> $DIR/issue-93078.rs:11:9
3    |
4 LL |         self.modify();
5    |         ^^^^^^^^^^^^^ cannot borrow as mutable
6    |
7    = note: as `Self` may be unsized, this call attempts to take `&mut &mut self`
8    = note: however, `&mut self` expands to `self: &mut Self`, therefore `self` cannot be borrowed mutably
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0596`.