diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-04 08:46:49 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-30 08:06:08 +0000 |
| commit | 9b5d57d0a9d8ba75fd1602f62d0bfd9f2f6acd1e (patch) | |
| tree | 237925507e6d88ad8e649ab24f2a9dfea62e726c /tests/ui/async-await/async-fn/impl-header.stderr | |
| parent | cca072ca151d766bc9a40b82b1fc5e67ef5fee1e (diff) | |
| download | rust-9b5d57d0a9d8ba75fd1602f62d0bfd9f2f6acd1e.tar.gz rust-9b5d57d0a9d8ba75fd1602f62d0bfd9f2f6acd1e.zip | |
Unconditionally run `check_item_type` on all items
Diffstat (limited to 'tests/ui/async-await/async-fn/impl-header.stderr')
| -rw-r--r-- | tests/ui/async-await/async-fn/impl-header.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/async-await/async-fn/impl-header.stderr b/tests/ui/async-await/async-fn/impl-header.stderr index 64a98aab17b..2fc7a900a1e 100644 --- a/tests/ui/async-await/async-fn/impl-header.stderr +++ b/tests/ui/async-await/async-fn/impl-header.stderr @@ -22,6 +22,14 @@ LL | impl async Fn<()> for F {} | = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable +error[E0046]: not all trait items implemented, missing: `call` + --> $DIR/impl-header.rs:5:1 + | +LL | impl async Fn<()> for F {} + | ^^^^^^^^^^^^^^^^^^^^^^^ missing `call` in implementation + | + = help: implement the missing item: `fn call(&self, _: ()) -> <Self as FnOnce<()>>::Output { todo!() }` + error[E0277]: expected a `FnMut()` closure, found `F` --> $DIR/impl-header.rs:5:23 | @@ -33,14 +41,6 @@ LL | impl async Fn<()> for F {} note: required by a bound in `Fn` --> $SRC_DIR/core/src/ops/function.rs:LL:COL -error[E0046]: not all trait items implemented, missing: `call` - --> $DIR/impl-header.rs:5:1 - | -LL | impl async Fn<()> for F {} - | ^^^^^^^^^^^^^^^^^^^^^^^ missing `call` in implementation - | - = help: implement the missing item: `fn call(&self, _: ()) -> <Self as FnOnce<()>>::Output { todo!() }` - error: aborting due to 5 previous errors Some errors have detailed explanations: E0046, E0183, E0277, E0658. |
