2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-build:missing-assoc-fn-applicable-suggestions.rs
|
2020-01-30 19:01:31 -08:00
|
|
|
|
2023-04-19 17:22:16 +00:00
|
|
|
extern crate missing_assoc_fn_applicable_suggestions;
|
|
|
|
use missing_assoc_fn_applicable_suggestions::TraitA;
|
2020-01-30 19:01:31 -08:00
|
|
|
|
|
|
|
struct S;
|
2023-04-19 17:22:16 +00:00
|
|
|
impl TraitA<()> for S {
|
|
|
|
//~^ ERROR not all trait items implemented
|
2020-01-30 19:01:31 -08:00
|
|
|
}
|
2023-04-19 17:22:16 +00:00
|
|
|
//~^ 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;`
|
2020-01-30 19:01:31 -08:00
|
|
|
|
|
|
|
fn main() {}
|