summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-91139.stderr
blob: 89a4ba77e4e79f72e9749b9243a752b15a78e087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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