23 lines
401 B
Rust
23 lines
401 B
Rust
// edition:2021
|
|
// run-rustfix
|
|
|
|
#![feature(async_fn_in_trait, return_position_impl_trait_in_trait)]
|
|
|
|
trait Trait {
|
|
async fn foo();
|
|
|
|
async fn bar() -> i32;
|
|
|
|
fn test(&self) -> impl Sized + '_;
|
|
}
|
|
|
|
struct S;
|
|
|
|
impl Trait for S {fn test(&self) -> impl Sized + '_ { todo!() }
|
|
async fn bar() -> i32 { todo!() }
|
|
async fn foo() { todo!() }
|
|
}
|
|
//~^ ERROR not all trait items implemented
|
|
|
|
fn main() {}
|