]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/lifetime-mismatch.stderr
Auto merge of #105133 - oli-obk:promoted_def_ids, r=cjgillot
[rust.git] / src / test / ui / async-await / in-trait / lifetime-mismatch.stderr
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
3    |
4 LL | #![feature(async_fn_in_trait)]
5    |            ^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
8    = note: `#[warn(incomplete_features)]` on by default
9
10 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
11   --> $DIR/lifetime-mismatch.rs:12:17
12    |
13 LL |     async fn foo<'a>(&self);
14    |                 ---- lifetimes in impl do not match this method in trait
15 ...
16 LL |     async fn foo(&self) {}
17    |                 ^ lifetimes do not match method in trait
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0195`.