]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / missing-assoc-fn-applicable-suggestions.fixed
1 // run-rustfix
2 trait TraitB {
3     type Item;
4 }
5
6 trait TraitA<A> {
7     type Type;
8     fn bar<T>(_: T) -> Self;
9     fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy;
10 }
11
12 struct S;
13 struct Type;
14
15 impl TraitA<()> for S { //~ ERROR not all trait items implemented
16 fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy { todo!() }
17 fn bar<T>(_: T) -> Self { todo!() }
18 type Type = Type;
19 }
20
21 fn main() {}