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[E0310]: the parameter type `T` may not live long enough
26 --> $DIR/issue-91139.rs:14:58
28 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
29 | ^^^^^^ ...so that the type `T` will meet its required lifetime bounds
31 help: consider adding an explicit lifetime bound...
33 LL | fn foo<T: 'static>() {
36 error: `T` does not live long enough
37 --> $DIR/issue-91139.rs:14:58
39 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
42 error: `T` does not live long enough
43 --> $DIR/issue-91139.rs:14:58
45 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
48 error[E0310]: the parameter type `T` may not live long enough
49 --> $DIR/issue-91139.rs:14:58
51 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
52 | ^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
54 help: consider adding an explicit lifetime bound...
56 LL | fn foo<T: 'static>() {
59 error: `T` does not live long enough
60 --> $DIR/issue-91139.rs:14:58
62 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
65 error: `T` does not live long enough
66 --> $DIR/issue-91139.rs:14:58
68 LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
71 error: aborting due to 10 previous errors
73 For more information about this error, try `rustc --explain E0310`.