]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-63388-1.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / async-await / issues / issue-63388-1.stderr
1 error[E0621]: explicit lifetime required in the type of `foo`
2   --> $DIR/issue-63388-1.rs:13:5
3    |
4 LL |           &'a self, foo: &dyn Foo
5    |                          -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
6 LL |       ) -> &dyn Foo
7 LL | /     {
8 LL | |
9 LL | |         foo
10 LL | |     }
11    | |_____^ lifetime `'a` required
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0621`.