]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-63388-1.stderr
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issues / issue-63388-1.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/issue-63388-1.rs:14:9
3    |
4 LL |         &'a self, foo: &dyn Foo
5    |         -------- this parameter and the return type are declared with different lifetimes...
6 LL |     ) -> &dyn Foo
7    |          --------
8 LL |     {
9 LL |         foo
10    |         ^^^ ...but data from `foo` is returned here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0623`.