about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/wrong-trait.stderr
blob: b39f5aa623c105d84613968aa046a7c10be61bd8 (plain)
1
2
3
4
5
6
7
8
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