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