2021-06-07 14:25:19 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-03 10:41:01 -05:00
|
|
|
--> $DIR/rfc1623-2.rs:28:8
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
2022-04-19 19:53:35 -05:00
|
|
|
LL | f: &id,
|
|
|
|
| ^^^ one type is more general than the other
|
2021-06-07 14:25:19 -05:00
|
|
|
|
|
2022-06-11 18:25:35 -05:00
|
|
|
= note: expected trait `for<'a, 'b> Fn<(&'a Foo<'b>,)>`
|
|
|
|
found trait `Fn<(&Foo<'_>,)>`
|
2020-06-08 18:12:01 -05:00
|
|
|
|
2021-06-07 14:25:19 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-03 10:41:01 -05:00
|
|
|
--> $DIR/rfc1623-2.rs:28:8
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
2022-04-19 19:53:35 -05:00
|
|
|
LL | f: &id,
|
|
|
|
| ^^^ one type is more general than the other
|
2021-06-07 14:25:19 -05:00
|
|
|
|
|
2022-06-11 18:25:35 -05:00
|
|
|
= note: expected trait `for<'a, 'b> Fn<(&'a Foo<'b>,)>`
|
|
|
|
found trait `Fn<(&Foo<'_>,)>`
|
2020-06-08 18:12:01 -05:00
|
|
|
|
2021-06-07 14:25:19 -05:00
|
|
|
error: implementation of `FnOnce` is not general enough
|
2022-11-03 10:41:01 -05:00
|
|
|
--> $DIR/rfc1623-2.rs:28:8
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
2022-04-19 19:53:35 -05:00
|
|
|
LL | f: &id,
|
|
|
|
| ^^^ implementation of `FnOnce` is not general enough
|
2021-06-07 14:25:19 -05:00
|
|
|
|
|
2021-09-25 13:04:00 -05:00
|
|
|
= note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'b>,)>`, for any lifetime `'1`...
|
2021-06-07 14:25:19 -05:00
|
|
|
= note: ...but it actually implements `FnOnce<(&'2 Foo<'_>,)>`, for some specific lifetime `'2`
|
2020-06-08 18:12:01 -05:00
|
|
|
|
2021-06-07 14:25:19 -05:00
|
|
|
error: implementation of `FnOnce` is not general enough
|
2022-11-03 10:41:01 -05:00
|
|
|
--> $DIR/rfc1623-2.rs:28:8
|
2020-06-08 18:12:01 -05:00
|
|
|
|
|
2022-04-19 19:53:35 -05:00
|
|
|
LL | f: &id,
|
|
|
|
| ^^^ implementation of `FnOnce` is not general enough
|
2021-06-07 14:25:19 -05:00
|
|
|
|
|
2021-09-25 13:04:00 -05:00
|
|
|
= note: `fn(&Foo<'2>) -> &Foo<'2> {id::<&Foo<'2>>}` must implement `FnOnce<(&'a Foo<'1>,)>`, for any lifetime `'1`...
|
2021-06-07 14:25:19 -05:00
|
|
|
= note: ...but it actually implements `FnOnce<(&Foo<'2>,)>`, for some specific lifetime `'2`
|
2020-06-08 18:12:01 -05:00
|
|
|
|
2021-11-26 08:11:45 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2020-06-08 18:12:01 -05:00
|
|
|
|
2021-11-26 08:11:45 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|