|
31 | 31 | LL | | };
|
32 | 32 | | |_^ one type is more general than the other
|
33 | 33 | |
|
34 |
| - = note: expected type `for<'r, 's> Fn<(&'r Foo<'s>,)>` |
| 34 | + = note: expected type `for<'a, 'b> Fn<(&'a Foo<'b>,)>` |
35 | 35 | found type `Fn<(&Foo<'_>,)>`
|
36 | 36 |
|
37 | 37 | error[E0308]: mismatched types
|
|
46 | 46 | LL | | };
|
47 | 47 | | |_^ one type is more general than the other
|
48 | 48 | |
|
49 |
| - = note: expected type `for<'r, 's> Fn<(&'r Foo<'s>,)>` |
| 49 | + = note: expected type `for<'a, 'b> Fn<(&'a Foo<'b>,)>` |
50 | 50 | found type `Fn<(&Foo<'_>,)>`
|
51 | 51 |
|
52 | 52 | error: implementation of `FnOnce` is not general enough
|
|
61 | 61 | LL | | };
|
62 | 62 | | |_^ implementation of `FnOnce` is not general enough
|
63 | 63 | |
|
64 |
| - = note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'_>,)>`, for any lifetime `'1`... |
| 64 | + = note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'b>,)>`, for any lifetime `'1`... |
65 | 65 | = note: ...but it actually implements `FnOnce<(&'2 Foo<'_>,)>`, for some specific lifetime `'2`
|
66 | 66 |
|
67 | 67 | error: implementation of `FnOnce` is not general enough
|
|
76 | 76 | LL | | };
|
77 | 77 | | |_^ implementation of `FnOnce` is not general enough
|
78 | 78 | |
|
79 |
| - = note: `fn(&Foo<'2>) -> &Foo<'2> {id::<&Foo<'2>>}` must implement `FnOnce<(&Foo<'1>,)>`, for any lifetime `'1`... |
| 79 | + = note: `fn(&Foo<'2>) -> &Foo<'2> {id::<&Foo<'2>>}` must implement `FnOnce<(&'a Foo<'1>,)>`, for any lifetime `'1`... |
80 | 80 | = note: ...but it actually implements `FnOnce<(&Foo<'2>,)>`, for some specific lifetime `'2`
|
81 | 81 |
|
82 | 82 | error: aborting due to 5 previous errors
|
|
0 commit comments