]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-84592.stderr
Rollup merge of #106919 - compiler-errors:underscore-typo-in-field-pat, r=jackh726
[rust.git] / tests / ui / suggestions / issue-84592.stderr
1 error[E0106]: missing lifetime specifiers
2   --> $DIR/issue-84592.rs:12:57
3    |
4 LL | fn two_lifetimes_needed(a: &(), b: &()) -> TwoLifetimes<'_, '_> {
5    |                            ---     ---                  ^^  ^^ expected named lifetime parameter
6    |                                                         |
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 `a` or `b`
10 help: consider introducing a named lifetime parameter
11    |
12 LL | fn two_lifetimes_needed<'a>(a: &'a (), b: &'a ()) -> TwoLifetimes<'a, 'a> {
13    |                        ++++     ++         ++                     ~~  ~~
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0106`.