2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
|
|
|
|
//@ edition:2021
|
2022-11-01 22:28:40 +00:00
|
|
|
|
|
|
|
|
pub trait Foo {
|
2023-09-26 20:20:25 +00:00
|
|
|
#[allow(async_fn_in_trait)]
|
2022-11-01 22:28:40 +00:00
|
|
|
async fn foo(&mut self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct MyFoo<'a>(&'a mut ());
|
|
|
|
|
|
|
|
|
|
impl<'a> Foo for MyFoo<'a> {
|
|
|
|
|
async fn foo(&mut self) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|