mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
11 lines
183 B
Rust
11 lines
183 B
Rust
![]() |
//@ 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() {}
|