rust/tests/ui/async-await/issues/issue-63388-1.stderr

16 lines
475 B
Plaintext
Raw Normal View History

error[E0621]: explicit lifetime required in the type of `foo`
2022-04-01 13:13:25 -04:00
--> $DIR/issue-63388-1.rs:13:5
2019-08-13 09:13:50 -04:00
|
LL | &'a self, foo: &dyn Foo
| -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
2019-08-13 09:13:50 -04:00
LL | ) -> &dyn Foo
LL | / {
2022-05-21 15:46:25 -04:00
LL | |
2019-08-13 09:13:50 -04:00
LL | | foo
LL | | }
| |_____^ lifetime `'a` required
2019-08-13 09:13:50 -04:00
2020-01-11 17:18:58 +00:00
error: aborting due to previous error
2019-08-13 09:13:50 -04:00
For more information about this error, try `rustc --explain E0621`.