]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error[E0621]: explicit lifetime required in the type of `foo` |
2 | --> $DIR/issue-63388-1.rs:13:5 | |
e1599b0c | 3 | | |
923072b8 FG |
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 | |
e1599b0c XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
923072b8 | 15 | For more information about this error, try `rustc --explain E0621`. |