rust/tests/ui/impl-trait/in-trait/suggest-missing-item.rs
2023-10-13 21:01:36 +00:00

23 lines
355 B
Rust

// edition:2021
// run-rustfix
trait Trait {
#[allow(async_fn_in_trait)]
async fn foo();
#[allow(async_fn_in_trait)]
async fn bar() -> i32;
fn test(&self) -> impl Sized + '_;
#[allow(async_fn_in_trait)]
async fn baz(&self) -> &i32;
}
struct S;
impl Trait for S {}
//~^ ERROR not all trait items implemented
fn main() {}