2018-05-26 11:47:38 +01:00
|
|
|
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'d` due to conflicting requirements
|
2023-01-08 02:40:59 +00:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:31
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2023-01-08 02:40:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
2021-10-05 12:11:51 +00:00
|
|
|
note: first, the lifetime cannot outlive the lifetime `'d` as defined here...
|
2019-04-07 16:07:36 +01:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:14
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2018-06-27 16:27:47 -07:00
|
|
|
| ^^
|
2021-10-05 12:11:51 +00:00
|
|
|
note: ...but the lifetime must also be valid for the lifetime `'a` as defined here...
|
2019-04-07 16:07:36 +01:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:18
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2018-06-27 16:27:47 -07:00
|
|
|
| ^^
|
2019-12-03 22:20:05 -05:00
|
|
|
note: ...so that the types are compatible
|
2023-01-08 02:40:59 +00:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:31
|
2019-12-03 22:20:05 -05:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2023-01-08 02:40:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-19 19:44:06 -08:00
|
|
|
= note: expected `Visitor<'d>`
|
|
|
|
found `Visitor<'_>`
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2019-09-12 15:00:44 +02:00
|
|
|
For more information about this error, try `rustc --explain E0495`.
|