@@ -4,12 +4,10 @@ warning: function cannot return without recursing
4
4
LL | / fn no_hrtb<'b, T>(mut t: T)
5
5
LL | | where
6
6
LL | | T: Bar<&'b isize>,
7
- LL | | {
8
- ... |
9
- LL | | no_hrtb(&mut t);
10
- | | --------------- recursive call site
11
- LL | | }
12
- | |_^ cannot return without recursing
7
+ | |______________________^ cannot return without recursing
8
+ ...
9
+ LL | no_hrtb(&mut t);
10
+ | --------------- recursive call site
13
11
|
14
12
= note: `#[warn(unconditional_recursion)]` on by default
15
13
= help: a `loop` may express intention better if this is on purpose
@@ -20,12 +18,10 @@ warning: function cannot return without recursing
20
18
LL | / fn bar_hrtb<T>(mut t: T)
21
19
LL | | where
22
20
LL | | T: for<'b> Bar<&'b isize>,
23
- LL | | {
24
- ... |
25
- LL | | bar_hrtb(&mut t);
26
- | | ---------------- recursive call site
27
- LL | | }
28
- | |_^ cannot return without recursing
21
+ | |______________________________^ cannot return without recursing
22
+ ...
23
+ LL | bar_hrtb(&mut t);
24
+ | ---------------- recursive call site
29
25
|
30
26
= help: a `loop` may express intention better if this is on purpose
31
27
@@ -35,14 +31,10 @@ warning: function cannot return without recursing
35
31
LL | / fn foo_hrtb_bar_not<'b, T>(mut t: T)
36
32
LL | | where
37
33
LL | | T: for<'a> Foo<&'a isize> + Bar<&'b isize>,
38
- LL | | {
39
- ... |
40
- LL | | foo_hrtb_bar_not(&mut t);
41
- | | ------------------------ recursive call site
42
- LL | |
43
- LL | |
44
- LL | | }
45
- | |_^ cannot return without recursing
34
+ | |_______________________________________________^ cannot return without recursing
35
+ ...
36
+ LL | foo_hrtb_bar_not(&mut t);
37
+ | ------------------------ recursive call site
46
38
|
47
39
= help: a `loop` may express intention better if this is on purpose
48
40
@@ -70,12 +62,10 @@ warning: function cannot return without recursing
70
62
LL | / fn foo_hrtb_bar_hrtb<T>(mut t: T)
71
63
LL | | where
72
64
LL | | T: for<'a> Foo<&'a isize> + for<'b> Bar<&'b isize>,
73
- LL | | {
74
- LL | | // OK -- now we have `T : for<'b> Bar<&'b isize>`.
75
- LL | | foo_hrtb_bar_hrtb(&mut t);
76
- | | ------------------------- recursive call site
77
- LL | | }
78
- | |_^ cannot return without recursing
65
+ | |_______________________________________________________^ cannot return without recursing
66
+ ...
67
+ LL | foo_hrtb_bar_hrtb(&mut t);
68
+ | ------------------------- recursive call site
79
69
|
80
70
= help: a `loop` may express intention better if this is on purpose
81
71
0 commit comments