about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/suggest-missing-item.rs
blob: 99a8bfe79fd284d32a2bdad6fdd443e3133f5a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ edition:2021
//@ run-rustfix

#![allow(dead_code)]
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() {}