Sign in
android
/
toolchain
/
rustc
/
977026a81a6cc1c304420586c1bb6527b72b4303
/
.
/
src
/
test
/
ui
/
async-await
/
in-trait
/
early-bound-2.rs
blob: 270443229b05416db70cb8c38f37cd7cd0d2f8f2 [
file
] [
log
] [
blame
]
// check-pass
// edition:2021
#![
feature
(
async_fn_in_trait
)]
#![
allow
(
incomplete_features
)]
pub
trait
Foo
{
async
fn
foo
(&
mut
self
);
}
impl
<
T
:
Foo
>
Foo
for
&
mut
T
{
async
fn
foo
(&
mut
self
)
{}
}
fn
main
()
{}