rust/tests/ui/async-await/async-closures/signature-deduction.rs

11 lines
147 B
Rust

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