rust/tests/ui/async-await/async-fn/impl-header.rs
2024-02-20 16:09:09 +00:00

13 lines
387 B
Rust

//@ edition:2018
struct F;
impl async Fn<()> for F {}
//~^ 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`
fn main() {}