mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
error: implementation of `Foo` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-10.rs:32:5
|
|
|
|
|
LL | Box::new(async move { get_foo(x).await })
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
|
|
|
|
= note: `Foo<'1>` would have to be implemented for the type `&'0 str`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Foo<'2>` is actually implemented for the type `&'2 str`, for some specific lifetime `'2`
|
|
|
|
error: implementation of `Foo` is not general enough
|
|
--> $DIR/higher-ranked-auto-trait-10.rs:32:5
|
|
|
|
|
LL | Box::new(async move { get_foo(x).await })
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
|
|
|
|
= note: `Foo<'1>` would have to be implemented for the type `&'0 str`, for any two lifetimes `'0` and `'1`...
|
|
= note: ...but `Foo<'2>` is actually implemented for the type `&'2 str`, for some specific lifetime `'2`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|