]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issues/issue-63388-2.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / async-await / issues / issue-63388-2.stderr
CommitLineData
e1599b0c
XL
1error[E0106]: missing lifetime specifier
2 --> $DIR/issue-63388-2.rs:12:10
3 |
74b04a01
XL
4LL | foo: &dyn Foo, bar: &'a dyn Foo
5 | -------- -----------
e1599b0c 6LL | ) -> &dyn Foo
f9f354fc 7 | ^ expected named lifetime parameter
e1599b0c
XL
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`
f9f354fc
XL
10help: consider using the `'a` lifetime
11 |
12LL | ) -> &'a dyn Foo
064997fb 13 | ++
e1599b0c 14
064997fb
FG
15error[E0621]: explicit lifetime required in the type of `foo`
16 --> $DIR/issue-63388-2.rs:13:5
17 |
18LL | foo: &dyn Foo, bar: &'a dyn Foo
19 | -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
20LL | ) -> &dyn Foo
21LL | / {
22LL | |
23LL | | foo
24LL | | }
25 | |_____^ lifetime `'a` required
26
27error: aborting due to 2 previous errors
e1599b0c 28
064997fb
FG
29Some errors have detailed explanations: E0106, E0621.
30For more information about an error, try `rustc --explain E0106`.