fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0637]: `'_` cannot be used here 2 --> $DIR/E0637.rs:1:24 3 | 4LL | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str { 5 | ^^ `'_` is a reserved lifetime name 6 7error[E0106]: missing lifetime specifier 8 --> $DIR/E0637.rs:1:62 9 | 10LL | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str { 11 | ------- ------- ^^ expected named lifetime parameter 12 | 13 = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `str1` or `str2` 14help: consider introducing a named lifetime parameter 15 | 16LL | fn underscore_lifetime<'a, '_>(str1: &'a str, str2: &'a str) -> &'a str { 17 | +++ ~~ ~~ ~~ 18 19error[E0637]: `&` without an explicit lifetime name cannot be used here 20 --> $DIR/E0637.rs:13:13 21 | 22LL | T: Into<&u32>, 23 | ^ explicit lifetime name needed here 24 | 25help: consider introducing a higher-ranked lifetime here 26 | 27LL | T: for<'a> Into<&'a u32>, 28 | +++++++ ++ 29 30error: aborting due to 3 previous errors 31 32Some errors have detailed explanations: E0106, E0637. 33For more information about an error, try `rustc --explain E0106`.