1 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
2 --> $DIR/bound-lifetime-constrained.rs:26:50
4 LL | fn func1(_: for<'a> fn(<() as Foo<'a>>::Item) -> &'a i32) {
7 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
8 --> $DIR/bound-lifetime-constrained.rs:33:29
10 LL | fn func2(_: for<'a> fn() -> <() as Foo<'a>>::Item) {
11 | ^^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to 2 previous errors
15 For more information about this error, try `rustc --explain E0581`.