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