| 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 |
| |