1 error[E0637]: `'_` cannot be used here
4 LL | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
5 | ^^ `'_` is a reserved lifetime name
7 error[E0637]: `&` without an explicit lifetime name cannot be used here
8 --> $DIR/E0637.rs:13:13
11 | ^ explicit lifetime name needed here
13 error[E0106]: missing lifetime specifier
14 --> $DIR/E0637.rs:1:62
16 LL | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
17 | ------- ------- ^^ expected named lifetime parameter
19 = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `str1` or `str2`
20 help: consider introducing a named lifetime parameter
22 LL | fn underscore_lifetime<'a, '_>(str1: &'a str, str2: &'a str) -> &'a str {
25 error: aborting due to 3 previous errors
27 Some errors have detailed explanations: E0106, E0637.
28 For more information about an error, try `rustc --explain E0106`.