1 warning: function cannot return without recursing
2 --> $DIR/hrtb-perfect-forwarding.rs:22:1
4 LL | / fn no_hrtb<'b,T>(mut t: T)
5 LL | | where T : Bar<&'b isize>
7 LL | | // OK -- `T : Bar<&'b isize>`, and thus the impl above ensures that
8 LL | | // `&mut 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:30:1
20 LL | / fn bar_hrtb<T>(mut t: T)
21 LL | | where T : for<'b> Bar<&'b isize>
23 LL | | // OK -- `T : for<'b> Bar<&'b isize>`, and thus the impl above
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:39:1
35 LL | / fn foo_hrtb_bar_not<'b,T>(mut t: T)
36 LL | | where T : for<'a> Foo<&'a isize> + Bar<&'b isize>
38 LL | | // Not OK -- The forwarding impl for `Foo` requires that `Bar` also
40 LL | | foo_hrtb_bar_not(&mut t);
41 | | ------------------------ recursive call site
44 | |_^ cannot return without recursing
46 = help: a `loop` may express intention better if this is on purpose
48 error: lifetime may not live long enough
49 --> $DIR/hrtb-perfect-forwarding.rs:46:5
51 LL | fn foo_hrtb_bar_not<'b,T>(mut t: T)
52 | -- lifetime `'b` defined here
54 LL | foo_hrtb_bar_not(&mut t);
55 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static`
57 = help: consider replacing `'b` with `'static`
59 error: higher-ranked subtype error
60 --> $DIR/hrtb-perfect-forwarding.rs:46:5
62 LL | foo_hrtb_bar_not(&mut t);
63 | ^^^^^^^^^^^^^^^^^^^^^^^^
65 warning: function cannot return without recursing
66 --> $DIR/hrtb-perfect-forwarding.rs:50:1
68 LL | / fn foo_hrtb_bar_hrtb<T>(mut t: T)
69 LL | | where T : for<'a> Foo<&'a isize> + for<'b> Bar<&'b isize>
71 LL | | // OK -- now we have `T : for<'b> Bar&'b isize>`.
72 LL | | foo_hrtb_bar_hrtb(&mut t);
73 | | ------------------------- recursive call site
75 | |_^ cannot return without recursing
77 = help: a `loop` may express intention better if this is on purpose
79 error: aborting due to 2 previous errors