@@ -22,6 +22,39 @@ LL | self.eq(other)
22
22
|
23
23
= help: a `loop` may express intention better if this is on purpose
24
24
25
+ error: function cannot return without recursing
26
+ --> $DIR/unconditional_recursion.rs:164:5
27
+ |
28
+ LL | fn to_string(&self) -> String {
29
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
30
+ LL |
31
+ LL | self.to_string()
32
+ | ---------------- recursive call site
33
+ |
34
+ = help: a `loop` may express intention better if this is on purpose
35
+
36
+ error: function cannot return without recursing
37
+ --> $DIR/unconditional_recursion.rs:173:5
38
+ |
39
+ LL | fn to_string(&self) -> String {
40
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
41
+ ...
42
+ LL | x.to_string()
43
+ | ------------- recursive call site
44
+ |
45
+ = help: a `loop` may express intention better if this is on purpose
46
+
47
+ error: function cannot return without recursing
48
+ --> $DIR/unconditional_recursion.rs:183:5
49
+ |
50
+ LL | fn to_string(&self) -> String {
51
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
52
+ LL |
53
+ LL | (self as &Self).to_string()
54
+ | --------------------------- recursive call site
55
+ |
56
+ = help: a `loop` may express intention better if this is on purpose
57
+
25
58
error: function cannot return without recursing
26
59
--> $DIR/unconditional_recursion.rs:12:5
27
60
|
@@ -247,5 +280,5 @@ LL | impl_partial_eq!(S5);
247
280
| -------------------- in this macro invocation
248
281
= note: this error originates in the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
249
282
250
- error: aborting due to 19 previous errors
283
+ error: aborting due to 22 previous errors
251
284
0 commit comments