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>,
7 | |______________________^ cannot return without recursing
10 | --------------- recursive call site
12 = help: a `loop` may express intention better if this is on purpose
13 = note: `#[warn(unconditional_recursion)]` on by default
15 warning: function cannot return without recursing
16 --> $DIR/hrtb-perfect-forwarding.rs:25:1
18 LL | / fn bar_hrtb<T>(mut t: T)
20 LL | | T: for<'b> Bar<&'b isize>,
21 | |______________________________^ cannot return without recursing
23 LL | bar_hrtb(&mut t);
24 | ---------------- recursive call site
26 = help: a `loop` may express intention better if this is on purpose
28 warning: function cannot return without recursing
29 --> $DIR/hrtb-perfect-forwarding.rs:35:1
31 LL | / fn foo_hrtb_bar_not<'b, T>(mut t: T)
33 LL | | T: for<'a> Foo<&'a isize> + Bar<&'b isize>,
34 | |_______________________________________________^ cannot return without recursing
36 LL | foo_hrtb_bar_not(&mut t);
37 | ------------------------ recursive call site
39 = help: a `loop` may express intention better if this is on purpose
41 error: lifetime may not live long enough
42 --> $DIR/hrtb-perfect-forwarding.rs:43:5
44 LL | fn foo_hrtb_bar_not<'b, T>(mut t: T)
45 | -- lifetime `'b` defined here
47 LL | foo_hrtb_bar_not(&mut t);
48 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static`
50 note: due to current limitations in the borrow checker, this implies a `'static` lifetime
51 --> $DIR/hrtb-perfect-forwarding.rs:37:8
53 LL | T: for<'a> Foo<&'a isize> + Bar<&'b isize>,
54 | ^^^^^^^^^^^^^^^^^^^^^^
56 error: implementation of `Bar` is not general enough
57 --> $DIR/hrtb-perfect-forwarding.rs:43:5
59 LL | foo_hrtb_bar_not(&mut t);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Bar` is not general enough
62 = note: `T` must implement `Bar<&'0 isize>`, for any lifetime `'0`...
63 = note: ...but it actually implements `Bar<&'1 isize>`, for some specific lifetime `'1`
65 warning: function cannot return without recursing
66 --> $DIR/hrtb-perfect-forwarding.rs:48:1
68 LL | / fn foo_hrtb_bar_hrtb<T>(mut t: T)
70 LL | | T: for<'a> Foo<&'a isize> + for<'b> Bar<&'b isize>,
71 | |_______________________________________________________^ cannot return without recursing
73 LL | foo_hrtb_bar_hrtb(&mut t);
74 | ------------------------- recursive call site
76 = help: a `loop` may express intention better if this is on purpose
78 error: aborting due to 2 previous errors; 4 warnings emitted