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

#![feature(async_trait_bounds)]

trait Foo {}

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

fn main() {}