fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
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 16fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: std::marker::Copy { todo!() } 17fn bar<T>(_: T) -> Self { todo!() } 18type Type = Type; 19} 20 21fn main() {}