mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +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
|
|
|