1 warning: the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/lifetime-mismatch.rs:3:12
4 LL | #![feature(async_fn_in_trait)]
7 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
11 --> $DIR/lifetime-mismatch.rs:12:17
13 LL | async fn foo<'a>(&self);
14 | ---- lifetimes in impl do not match this method in trait
16 LL | async fn foo(&self) {}
17 | ^ lifetimes do not match method in trait
19 error: aborting due to previous error; 1 warning emitted
21 For more information about this error, try `rustc --explain E0195`.