mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
42 lines
2.6 KiB
Plaintext
42 lines
2.6 KiB
Plaintext
error: implementation of `Getter` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-13.rs:65:5
|
|
|
|
|
LL | assert_send(my_send_async_method(struct_with_lifetime, data));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Getter` is not general enough
|
|
|
|
|
= note: `Getter<'1>` would have to be implemented for the type `GetterImpl<'0, ConstructableImpl<'_>>`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Getter<'2>` is actually implemented for the type `GetterImpl<'2, ConstructableImpl<'_>>`, for some specific lifetime `'2`
|
|
|
|
error: implementation of `Getter` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-13.rs:65:5
|
|
|
|
|
LL | assert_send(my_send_async_method(struct_with_lifetime, data));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Getter` is not general enough
|
|
|
|
|
= note: `Getter<'1>` would have to be implemented for the type `GetterImpl<'0, ConstructableImpl<'_>>`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Getter<'2>` is actually implemented for the type `GetterImpl<'2, ConstructableImpl<'_>>`, for some specific lifetime `'2`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: implementation of `Getter` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-13.rs:65:5
|
|
|
|
|
LL | assert_send(my_send_async_method(struct_with_lifetime, data));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Getter` is not general enough
|
|
|
|
|
= note: `Getter<'1>` would have to be implemented for the type `GetterImpl<'0, ConstructableImpl<'_>>`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Getter<'2>` is actually implemented for the type `GetterImpl<'2, ConstructableImpl<'_>>`, for some specific lifetime `'2`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: implementation of `Getter` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-13.rs:65:5
|
|
|
|
|
LL | assert_send(my_send_async_method(struct_with_lifetime, data));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Getter` is not general enough
|
|
|
|
|
= note: `Getter<'1>` would have to be implemented for the type `GetterImpl<'0, ConstructableImpl<'_>>`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Getter<'2>` is actually implemented for the type `GetterImpl<'2, ConstructableImpl<'_>>`, for some specific lifetime `'2`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|