]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-63388-2.stderr
Rollup merge of #87904 - kpreid:unsize, r=jyn514
[rust.git] / src / test / ui / async-await / issues / issue-63388-2.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/issue-63388-2.rs:12:10
3    |
4 LL |         foo: &dyn Foo, bar: &'a dyn Foo
5    |              --------       -----------
6 LL |     ) -> &dyn Foo
7    |          ^ expected named lifetime parameter
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 help: consider using the `'a` lifetime
11    |
12 LL |     ) -> &'a dyn Foo
13    |          ~~~
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0106`.