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