about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/impl-header.rs
blob: 9af5f1f42a9574140bacf1438a4722561ac78518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {}