|  | 
| 1 |  | -error: expected type, found keyword `async` | 
|  | 1 | +error: `async` trait implementations are unsupported | 
| 2 | 2 |  --> $DIR/impl-header.rs:5:6 | 
| 3 | 3 |  | | 
| 4 | 4 | LL | impl async Fn<()> for F {} | 
| 5 |  | - | ^^^^^ expected type | 
|  | 5 | + | ^^^^^ | 
| 6 | 6 | 
 | 
| 7 |  | -error: aborting due to 1 previous error | 
|  | 7 | +error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change | 
|  | 8 | + --> $DIR/impl-header.rs:5:12 | 
|  | 9 | + | | 
|  | 10 | +LL | impl async Fn<()> for F {} | 
|  | 11 | + | ^^^^^^ | 
|  | 12 | + | | 
|  | 13 | + = note: see issue #29625 <https://github.com/rust-lang/rust/issues/29625> for more information | 
|  | 14 | + = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable | 
|  | 15 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | 
|  | 16 | + | 
|  | 17 | +error[E0183]: manual implementations of `Fn` are experimental | 
|  | 18 | + --> $DIR/impl-header.rs:5:12 | 
|  | 19 | + | | 
|  | 20 | +LL | impl async Fn<()> for F {} | 
|  | 21 | + | ^^^^^^ manual implementations of `Fn` are experimental | 
|  | 22 | + | | 
|  | 23 | + = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable | 
|  | 24 | + | 
|  | 25 | +error[E0277]: expected a `FnMut()` closure, found `F` | 
|  | 26 | + --> $DIR/impl-header.rs:5:23 | 
|  | 27 | + | | 
|  | 28 | +LL | impl async Fn<()> for F {} | 
|  | 29 | + | ^ expected an `FnMut()` closure, found `F` | 
|  | 30 | + | | 
|  | 31 | + = help: the trait `FnMut<()>` is not implemented for `F` | 
|  | 32 | + = note: wrap the `F` in a closure with no arguments: `|| { /* code */ }` | 
|  | 33 | +note: required by a bound in `Fn` | 
|  | 34 | + --> $SRC_DIR/core/src/ops/function.rs:LL:COL | 
|  | 35 | + | 
|  | 36 | +error[E0046]: not all trait items implemented, missing: `call` | 
|  | 37 | + --> $DIR/impl-header.rs:5:1 | 
|  | 38 | + | | 
|  | 39 | +LL | impl async Fn<()> for F {} | 
|  | 40 | + | ^^^^^^^^^^^^^^^^^^^^^^^ missing `call` in implementation | 
|  | 41 | + | | 
|  | 42 | + = help: implement the missing item: `fn call(&self, _: ()) -> <Self as FnOnce<()>>::Output { todo!() }` | 
|  | 43 | + | 
|  | 44 | +error: aborting due to 5 previous errors | 
| 8 | 45 | 
 | 
|  | 46 | +Some errors have detailed explanations: E0046, E0183, E0277, E0658. | 
|  | 47 | +For more information about an error, try `rustc --explain E0046`. | 
0 commit comments