rust/tests/ui/async-await/async-fn/wrong-trait.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
219 B
Plaintext
Raw Normal View History

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