1 // compile-flags: --edition 2018
2 #![feature(async_await)]
5 async fn sink1<'a>(_: &'a str) {} // lint
6 async fn sink1_elided(_: &str) {} // ok
9 async fn one_to_one<'a>(s: &'a str) -> &'a str {
14 async fn one_to_one_elided(s: &str) -> &str {
19 async fn all_to_one<'a>(a: &'a str, _b: &'a str) -> &'a str {
23 // async fn unrelated(_: &str, _: &str) {} // Not allowed in async fn
29 pub async fn foo(&mut self) {}
32 // rust-lang/rust#61115
34 async fn print(s: &str) {