]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/in-trait/lifetime-mismatch.next.stderr
New upstream version 1.71.1+dfsg1
[rustc.git] / tests / ui / async-await / in-trait / lifetime-mismatch.next.stderr
1 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
2 --> $DIR/lifetime-mismatch.rs:13:17
3 |
4 LL | async fn foo<'a>(&self);
5 | ---- lifetimes in impl do not match this method in trait
6 ...
7 LL | async fn foo(&self) {}
8 | ^ lifetimes do not match method in trait
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0195`.