]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-93093.stderr
Rollup merge of #93221 - alyssaverkade:fix-93093, r=wesleywiser
[rust.git] / src / test / ui / borrowck / issue-93093.stderr
1 error[E0594]: cannot assign to `self.foo`, which is behind a `&` reference
2   --> $DIR/issue-93093.rs:8:9
3    |
4 LL |     async fn bar(&self) {
5    |                  ----- help: consider changing this to be a mutable reference: `&mut self`
6 LL |
7 LL |         self.foo += 1;
8    |         ^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0594`.