2018-05-26 10:47:38 +00: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 10:47:38 +00:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2023-01-08 02:40:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-05-26 10:47:38 +00:00
|
|
|
|
|
2021-10-05 12:11:51 +00:00
|
|
|
note: first, the lifetime cannot outlive the lifetime `'d` as defined here...
|
2019-04-07 15:07:36 +00:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:14
|
2018-05-26 10:47:38 +00:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2018-06-27 23:27:47 +00: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 15:07:36 +00:00
|
|
|
--> $DIR/normalization-bounds-error.rs:12:18
|
2018-05-26 10:47:38 +00:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2018-06-27 23:27:47 +00:00
|
|
|
| ^^
|
2019-12-04 03:20:05 +00: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-04 03:20:05 +00:00
|
|
|
|
|
|
|
|
LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
|
2023-01-08 02:40:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-20 03:44:06 +00:00
|
|
|
= note: expected `Visitor<'d>`
|
|
|
|
found `Visitor<'_>`
|
2018-05-26 10:47:38 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-05-26 10:47:38 +00:00
|
|
|
|
2019-09-12 13:00:44 +00:00
|
|
|
For more information about this error, try `rustc --explain E0495`.
|