2023-06-13 15:41:15 -05:00
|
|
|
// 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 + '_;
|
2023-06-20 20:57:26 -05:00
|
|
|
|
|
|
|
async fn baz(&self) -> &i32;
|
2023-06-13 15:41:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
|
|
|
impl Trait for S {}
|
|
|
|
//~^ ERROR not all trait items implemented
|
|
|
|
|
|
|
|
fn main() {}
|