]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-86667.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / 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 }
10
11 fn b(s1: &str, s2: &str) -> &str {
12 //~^ ERROR: missing lifetime specifier [E0106]
13     s1
14 }
15
16 fn main() {}