1 // Regression test for #86667, where a garbled suggestion was issued for
2 // a missing named lifetime parameter.
4 // compile-flags: --edition 2018
6 async fn a(s1: &str, s2: &str) -> &str {
7 //~^ ERROR: missing lifetime specifier [E0106]
9 //~^ ERROR: lifetime may not live long enough
12 fn b(s1: &str, s2: &str) -> &str {
13 //~^ ERROR: missing lifetime specifier [E0106]