]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / missing-assoc-fn-applicable-suggestions.rs
CommitLineData
74b04a01
XL
1// run-rustfix
2trait TraitB {
3 type Item;
4}
5
6trait 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
12struct S;
13struct Type;
14
15impl TraitA<()> for S { //~ ERROR not all trait items implemented
16}
17
18fn main() {}