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: lifetime may not live long enough
50 --> $DIR/hrtb-perfect-forwarding.rs:43:5
52 LL | fn foo_hrtb_bar_not<'b, T>(mut t: T)
53 | -- lifetime `'b` defined here
55 LL | foo_hrtb_bar_not(&mut t);
56 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static`
58 error: implementation of `Bar` is not general enough
59 --> $DIR/hrtb-perfect-forwarding.rs:43:5
61 LL | foo_hrtb_bar_not(&mut t);
62 | ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Bar` is not general enough
64 = note: `T` must implement `Bar<&'0 isize>`, for any lifetime `'0`...
65 = note: ...but it actually implements `Bar<&'1 isize>`, for some specific lifetime `'1`
67 warning: function cannot return without recursing
68 --> $DIR/hrtb-perfect-forwarding.rs:48:1
70 LL | / fn foo_hrtb_bar_hrtb<T>(mut t: T)
72 LL | | T: for<'a> Foo<&'a isize> + for<'b> Bar<&'b isize>,
74 LL | | // OK -- now we have `T : for<'b> Bar<&'b isize>`.
75 LL | | foo_hrtb_bar_hrtb(&mut t);
76 | | ------------------------- recursive call site
78 | |_^ cannot return without recursing
80 = help: a `loop` may express intention better if this is on purpose
82 error: aborting due to 2 previous errors; 4 warnings emitted