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

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

11 lines
183 B
Rust
Raw Normal View History

//@ 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() {}