1 // compile-flags: --edition 2018
2 #![feature(async_await)]
8 async fn sink1<'a>(_: &'a str) {} // lint
9 async fn sink1_elided(_: &str) {} // ok
12 async fn one_to_one<'a>(s: &'a str) -> &'a str {
17 async fn one_to_one_elided(s: &str) -> &str {
22 async fn all_to_one<'a>(a: &'a str, _b: &'a str) -> &'a str {
26 // async fn unrelated(_: &str, _: &str) {} // Not allowed in async fn
32 pub async fn foo(&mut self) {}
35 // rust-lang/rust#61115
37 async fn print(s: &str) {