]>
Commit | Line | Data |
---|---|---|
3c0e092e XL |
1 | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str { |
2 | //~^ ERROR: `'_` cannot be used here [E0637] | |
3 | //~| ERROR: missing lifetime specifier | |
4 | if str1.len() > str2.len() { | |
5 | str1 | |
6 | } else { | |
7 | str2 | |
8 | } | |
9 | } | |
3b2f2976 | 10 | |
3c0e092e XL |
11 | fn and_without_explicit_lifetime<T>() |
12 | where | |
13 | T: Into<&u32>, //~ ERROR: `&` without an explicit lifetime name cannot be used here [E0637] | |
14 | { | |
3b2f2976 XL |
15 | } |
16 | ||
ea8adc8c | 17 | fn main() {} |