@@ -3,50 +3,50 @@ warning: function cannot return without recursing
3
3
|
4
4
LL | fn bar(self: &mut Self) {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
6
- LL |
6
+ ...
7
7
LL | (&mut self).bar();
8
8
| ----------------- recursive call site
9
9
|
10
10
= note: `#[warn(unconditional_recursion)]` on by default
11
11
= help: a `loop` may express intention better if this is on purpose
12
12
13
13
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
14
- --> $DIR/issue-51191.rs:6 :9
14
+ --> $DIR/issue-51191.rs:7 :9
15
15
|
16
16
LL | (&mut self).bar();
17
17
| ^^^^^^^^^^^
18
18
| |
19
19
| cannot borrow as mutable
20
- | try removing `&mut` here
20
+ | help: try removing `&mut` here
21
21
22
22
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
23
- --> $DIR/issue-51191.rs:11 :9
23
+ --> $DIR/issue-51191.rs:13 :9
24
24
|
25
25
LL | fn imm(self) {
26
26
| ---- help: consider changing this to be mutable: `mut self`
27
27
LL | (&mut self).bar();
28
28
| ^^^^^^^^^^^ cannot borrow as mutable
29
29
30
30
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
31
- --> $DIR/issue-51191.rs:20 :9
31
+ --> $DIR/issue-51191.rs:22 :9
32
32
|
33
33
LL | (&mut self).bar();
34
34
| ^^^^^^^^^^^ cannot borrow as mutable
35
35
36
36
error[E0596]: cannot borrow data in a `&` reference as mutable
37
- --> $DIR/issue-51191.rs:20 :9
37
+ --> $DIR/issue-51191.rs:22 :9
38
38
|
39
39
LL | (&mut self).bar();
40
40
| ^^^^^^^^^^^ cannot borrow as mutable
41
41
42
42
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
43
- --> $DIR/issue-51191.rs:26 :9
43
+ --> $DIR/issue-51191.rs:28 :9
44
44
|
45
45
LL | (&mut self).bar();
46
46
| ^^^^^^^^^^^
47
47
| |
48
48
| cannot borrow as mutable
49
- | try removing `&mut` here
49
+ | help: try removing `&mut` here
50
50
51
51
error: aborting due to 5 previous errors; 1 warning emitted
52
52
0 commit comments