mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00
9 lines
219 B
Plaintext
9 lines
219 B
Plaintext
![]() |
error: `async` bound modifier only allowed on `Fn`/`FnMut`/`FnOnce` traits
|
||
|
--> $DIR/wrong-trait.rs:7:23
|
||
|
|
|
||
|
LL | fn test(x: impl async Foo) {}
|
||
|
| ^^^
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|