Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-async-fn-in-dyn-trait.rs
blob: 50e5fd1ab7a858daf49ceb2cde28a5767e0e47b0 [
file
] [
log
] [
blame
]
//@ edition: 2021
trait
Foo
{
async
fn
bar
(&
self
);
}
async
fn
takes_dyn_trait
(
x
:
&
dyn
Foo
)
{
//~^ ERROR the trait `Foo` is not dyn compatible
x
.
bar
().
await
;
}
fn
main
()
{}