rust/tests/ui/async-await/async-fn/edition-2015.rs

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

9 lines
191 B
Rust
Raw Normal View History

2024-01-26 17:00:34 +00:00
// FIXME(async_closures): This error message could be made better.
fn foo(x: impl async Fn()) -> impl async Fn() {}
//~^ ERROR expected
//~| ERROR expected
//~| ERROR expected
fn main() {}