]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-63388-2.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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[E0621]: explicit lifetime required in the type of `foo`
16   --> $DIR/issue-63388-2.rs:13:5
17    |
18 LL |           foo: &dyn Foo, bar: &'a dyn Foo
19    |                -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
20 LL |       ) -> &dyn Foo
21 LL | /     {
22 LL | |
23 LL | |         foo
24 LL | |     }
25    | |_____^ lifetime `'a` required
26
27 error: aborting due to 2 previous errors
28
29 Some errors have detailed explanations: E0106, E0621.
30 For more information about an error, try `rustc --explain E0106`.