fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
437 B21 linesraw
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() {}