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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
118 B
Rust
Raw Permalink Normal View History

//@ build-pass
//@ edition: 2021
2024-11-04 18:59:57 +00:00
async fn foo(x: impl AsyncFn(&str) -> &str) {}
fn main() {
foo(async |x| x);
}