]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | error[E0106]: missing lifetime specifier |
2 | --> $DIR/issue-63388-2.rs:12:10 | |
3 | | | |
4 | LL | ) -> &dyn Foo | |
5 | | ^ help: consider using the named lifetime: `&'a` | |
6 | | | |
7 | = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `foo` or `bar` | |
8 | ||
9 | error: cannot infer an appropriate lifetime | |
10 | --> $DIR/issue-63388-2.rs:11:9 | |
11 | | | |
12 | LL | foo: &dyn Foo, bar: &'a dyn Foo | |
13 | | ^^^ ...but this borrow... | |
e74abb32 XL |
14 | ... |
15 | LL | foo | |
16 | | --- this return type evaluates to the `'static` lifetime... | |
e1599b0c | 17 | | |
e74abb32 | 18 | note: ...can't outlive the lifetime `'_` as defined on the method body at 11:14 |
e1599b0c XL |
19 | --> $DIR/issue-63388-2.rs:11:14 |
20 | | | |
21 | LL | foo: &dyn Foo, bar: &'a dyn Foo | |
22 | | ^ | |
e1599b0c XL |
23 | |
24 | error: aborting due to 2 previous errors | |
25 | ||
26 | For more information about this error, try `rustc --explain E0106`. |