Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
async-fn
/
not-a-trait.rs
blob: 5cf23f2456a82e71394ac07127d28aee43dce96c [
file
] [
log
] [
blame
]
//@ edition:2018
#![
feature
(
async_trait_bounds
)]
struct
S
;
fn
test
(
x
:
impl
async S
)
{}
//~^ ERROR expected trait, found struct `S`
fn
missing
(
x
:
impl
async
Missing
)
{}
//~^ ERROR cannot find trait `Missing` in this scope
fn
main
()
{}