summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/suggest-missing-item.rs
blob: 26979b5149b060e4e9c44674a18a2fdb449b681e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 + '_;

    async fn baz(&self) -> &i32;
}

struct S;

impl Trait for S {}
//~^ ERROR not all trait items implemented

fn main() {}