rust/tests/ui/async-await/async-closures/signature-deduction.rs
2024-03-01 16:03:57 +00:00

11 lines
147 B
Rust

//@ check-pass
//@ edition: 2021
#![feature(async_closure)]
async fn foo(x: impl async Fn(&str) -> &str) {}
fn main() {
foo(async |x| x);
}