fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB29 linesraw
1error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
2  --> $DIR/issue-111554.rs:5:16
3   |
4LL |         || bar(&mut self);
5   |                ^^^^^^^^^ cannot borrow as mutable
6
7error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
8  --> $DIR/issue-111554.rs:10:16
9   |
10LL |         || bar(&mut self);
11   |                ^^^^^^^^^ cannot borrow as mutable
12
13error[E0596]: cannot borrow data in a `&` reference as mutable
14  --> $DIR/issue-111554.rs:10:16
15   |
16LL |         || bar(&mut self);
17   |                ^^^^^^^^^ cannot borrow as mutable
18
19error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
20  --> $DIR/issue-111554.rs:21:16
21   |
22LL |     pub fn quux(self) {
23   |                 ---- help: consider changing this to be mutable: `mut self`
24LL |         || bar(&mut self);
25   |                ^^^^^^^^^ cannot borrow as mutable
26
27error: aborting due to 4 previous errors
28
29For more information about this error, try `rustc --explain E0596`.