about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/wrong-trait.rs
blob: c431a362b1ea9058a12c0bb5befd445d5aa8e852 (plain)
1
2
3
4
5
6
7
8
9
10
// edition:2018

#![feature(async_closure)]

trait Foo {}

fn test(x: impl async Foo) {}
//~^ ERROR `async` bound modifier only allowed on `Fn`/`FnMut`/`FnOnce` traits

fn main() {}