mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
421 B
Plaintext
13 lines
421 B
Plaintext
error[E0621]: explicit lifetime required in the type of `foo`
|
|
--> $DIR/issue-63388-1.rs:14:9
|
|
|
|
|
LL | &'a self, foo: &dyn Foo
|
|
| -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
|
|
...
|
|
LL | foo
|
|
| ^^^ lifetime `'a` required
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0621`.
|