1 error: `T` does not live long enough
2 --> $DIR/issue-91139.rs:14:12
4 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 error: `T` does not live long enough
8 --> $DIR/issue-91139.rs:14:12
10 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: `T` does not live long enough
14 --> $DIR/issue-91139.rs:14:12
16 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: `T` does not live long enough
20 --> $DIR/issue-91139.rs:14:12
22 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: `T` does not live long enough
26 --> $DIR/issue-91139.rs:14:58
28 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
31 error: `T` does not live long enough
32 --> $DIR/issue-91139.rs:14:58
34 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
37 error[E0310]: the parameter type `T` may not live long enough
38 --> $DIR/issue-91139.rs:14:58
40 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
41 | ^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
43 help: consider adding an explicit lifetime bound...
45 LL | fn foo<T: 'static>() {
48 error: `T` does not live long enough
49 --> $DIR/issue-91139.rs:14:58
51 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
54 error: `T` does not live long enough
55 --> $DIR/issue-91139.rs:14:58
57 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
60 error: aborting due to 9 previous errors
62 For more information about this error, try `rustc --explain E0310`.