mirror of https://github.com/rust-lang/rust
17 lines
542 B
Plaintext
17 lines
542 B
Plaintext
error: `T` does not live long enough
|
|
--> $DIR/issue-91139.rs:14:12
|
|
|
|
|
LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `T` does not live long enough
|
|
--> $DIR/issue-91139.rs:14:12
|
|
|
|
|
LL | let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|