rust/tests/ui/impl-trait/in-trait/suggest-missing-item.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
355 B
Rust
Raw Normal View History

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