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