]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-86667.rs
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / issue-86667.rs
1 // Regression test for #86667, where a garbled suggestion was issued for
2 // a missing named lifetime parameter.
3
4 // compile-flags: --edition 2018
5
6 async fn a(s1: &str, s2: &str) -> &str {
7 //~^ ERROR: missing lifetime specifier [E0106]
8     s1
9 //~^ ERROR: lifetime may not live long enough
10 }
11
12 fn b(s1: &str, s2: &str) -> &str {
13 //~^ ERROR: missing lifetime specifier [E0106]
14     s1
15 }
16
17 fn main() {}