1 error[E0582]: binding for associated type `Output` references lifetime `'a`, which does not appear in the trait input types
2 --> $DIR/bound-lifetime-constrained.rs:28:56
4 LL | fn object1(_: Box<for<'a> Fn(<() as Foo<'a>>::Item) -> &'a i32>) {
7 error[E0582]: binding for associated type `Output` references lifetime `'a`, which does not appear in the trait input types
8 --> $DIR/bound-lifetime-constrained.rs:33:35
10 LL | fn object2(_: Box<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 E0582`.