rust/tests/ui/impl-trait/in-trait/suggest-missing-item.rs
Michael Goulet 28d58f6524 Bless tests
2023-10-03 00:37:18 +00:00

25 lines
424 B
Rust

// edition:2021
// run-rustfix
#![feature(async_fn_in_trait, return_position_impl_trait_in_trait)]
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() {}