summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/issue-97997.stderr
blob: 78401bbf6540aad7849d0f675487218c131ab152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: implementation of `Foo` is not general enough
  --> $DIR/issue-97997.rs:13:5
   |
LL |     <fn(&u8) as Foo>::ASSOC;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
   |
   = note: `Foo` would have to be implemented for the type `for<'r> fn(&'r u8)`
   = note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`

error: implementation of `Foo` is not general enough
  --> $DIR/issue-97997.rs:13:5
   |
LL |     <fn(&u8) as Foo>::ASSOC;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
   |
   = note: `Foo` would have to be implemented for the type `for<'r> fn(&'r u8)`
   = note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`

error: aborting due to 2 previous errors