about summary refs log tree commit diff
path: root/tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs
blob: ebe7e4574ca49dab2e0eb45180c8ab3badd6acac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ aux-build:missing-assoc-fn-applicable-suggestions.rs

extern crate missing_assoc_fn_applicable_suggestions;
use missing_assoc_fn_applicable_suggestions::TraitA;

struct S;
impl TraitA<()> for S {
    //~^ ERROR not all trait items implemented
}
//~^ HELP implement the missing item: `type Type = /* Type */;`
//~| HELP implement the missing item: `fn bar<T>(_: T) -> Self { todo!() }`
//~| HELP implement the missing item: `fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy { todo!() }`
//~| HELP implement the missing item: `const A: usize = 42;`

fn main() {}