Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
async-fn
/
wrong-trait.rs
blob: 38d6bb1d01a9949d6f5ac898dd396801cae27884 [
file
] [
log
] [
blame
]
//@ 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
()
{}