rust/tests/ui/async-await/higher-ranked-auto-trait-10.assumptions.stderr
2025-07-15 16:02:26 +00:00

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