rust/tests/ui/async-await/async-fn/impl-header.rs

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

13 lines
387 B
Rust
Raw Normal View History

2024-01-26 17:00:34 +00:00
//@ edition:2018
struct F;
impl async Fn<()> for F {}
2024-02-20 16:09:03 +00:00
//~^ ERROR `async` trait implementations are unsupported
//~| ERROR the precise format of `Fn`-family traits' type parameters is subject to change
//~| ERROR manual implementations of `Fn` are experimental
//~| ERROR expected a `FnMut()` closure, found `F`
//~| ERROR not all trait items implemented, missing: `call`
2024-01-26 17:00:34 +00:00
fn main() {}