1 warning: function cannot return without recursing
2 --> $DIR/hrtb-perfect-forwarding.rs:16:1
4 LL | / fn no_hrtb<'b, T>(mut t: T)
6 LL | | T: Bar<&'b isize>,
9 LL | | no_hrtb(&mut t);
10 | | --------------- recursive call site
12 | |_^ cannot return without recursing
14 = note: `#[warn(unconditional_recursion)]` on by default
15 = help: a `loop` may express intention better if this is on purpose
17 warning: function cannot return without recursing
18 --> $DIR/hrtb-perfect-forwarding.rs:25:1
20 LL | / fn bar_hrtb<T>(mut t: T)
22 LL | | T: for<'b> Bar<&'b isize>,
25 LL | | bar_hrtb(&mut t);
26 | | ---------------- recursive call site
28 | |_^ cannot return without recursing
30 = help: a `loop` may express intention better if this is on purpose
32 warning: function cannot return without recursing
33 --> $DIR/hrtb-perfect-forwarding.rs:35:1
35 LL | / fn foo_hrtb_bar_not<'b, T>(mut t: T)
37 LL | | T: for<'a> Foo<&'a isize> + Bar<&'b isize>,
40 LL | | foo_hrtb_bar_not(&mut t);
41 | | ------------------------ recursive call site
45 | |_^ cannot return without recursing
47 = help: a `loop` may express intention better if this is on purpose
49 error: higher-ranked subtype error
50 --> $DIR/hrtb-perfect-forwarding.rs:43:5
52 LL | foo_hrtb_bar_not(&mut t);
53 | ^^^^^^^^^^^^^^^^^^^^^^^^
55 warning: function cannot return without recursing
56 --> $DIR/hrtb-perfect-forwarding.rs:48:1
58 LL | / fn foo_hrtb_bar_hrtb<T>(mut t: T)
60 LL | | T: for<'a> Foo<&'a isize> + for<'b> Bar<&'b isize>,
62 LL | | // OK -- now we have `T : for<'b> Bar<&'b isize>`.
63 LL | | foo_hrtb_bar_hrtb(&mut t);
64 | | ------------------------- recursive call site
66 | |_^ cannot return without recursing
68 = help: a `loop` may express intention better if this is on purpose
70 error: aborting due to previous error; 4 warnings emitted