@@ -51,6 +51,12 @@ LL | | }
5151error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
5252 --> $DIR/issue-67185-2.rs:27:6
5353 |
54+ LL | trait Foo
55+ | --- required by a bound in this
56+ ...
57+ LL | <u8 as Baz>::Quaks: Bar,
58+ | --- required by this bound in `Foo`
59+ ...
5460LL | impl Foo for FooImpl {}
5561 | ^^^ the trait `Bar` is not implemented for `[u16; 3]`
5662 |
@@ -61,6 +67,12 @@ LL | impl Foo for FooImpl {}
6167error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
6268 --> $DIR/issue-67185-2.rs:27:6
6369 |
70+ LL | trait Foo
71+ | --- required by a bound in this
72+ ...
73+ LL | [<u8 as Baz>::Quaks; 2]: Bar,
74+ | --- required by this bound in `Foo`
75+ ...
6476LL | impl Foo for FooImpl {}
6577 | ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
6678 |
@@ -71,17 +83,14 @@ LL | impl Foo for FooImpl {}
7183error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
7284 --> $DIR/issue-67185-2.rs:31:14
7385 |
74- LL | / trait Foo
75- LL | |
76- LL | | where
77- LL | | [<u8 as Baz>::Quaks; 2]: Bar,
78- LL | | <u8 as Baz>::Quaks: Bar,
79- LL | | {
80- LL | | }
81- | |_- required by `Foo`
86+ LL | trait Foo
87+ | --- required by a bound in this
88+ ...
89+ LL | [<u8 as Baz>::Quaks; 2]: Bar,
90+ | --- required by this bound in `Foo`
8291...
83- LL | fn f(_: impl Foo) {}
84- | ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
92+ LL | fn f(_: impl Foo) {}
93+ | ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
8594 |
8695 = help: the following implementations were found:
8796 <[[u16; 3]; 3] as Bar>
@@ -90,22 +99,19 @@ LL | fn f(_: impl Foo) {}
9099error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
91100 --> $DIR/issue-67185-2.rs:31:14
92101 |
93- LL | / trait Foo
94- LL | |
95- LL | | where
96- LL | | [<u8 as Baz>::Quaks; 2]: Bar,
97- LL | | <u8 as Baz>::Quaks: Bar,
98- LL | | {
99- LL | | }
100- | |_- required by `Foo`
102+ LL | trait Foo
103+ | --- required by a bound in this
104+ ...
105+ LL | <u8 as Baz>::Quaks: Bar,
106+ | --- required by this bound in `Foo`
101107...
102- LL | fn f(_: impl Foo) {}
103- | ^^^ the trait `Bar` is not implemented for `[u16; 3]`
108+ LL | fn f(_: impl Foo) {}
109+ | ^^^ the trait `Bar` is not implemented for `[u16; 3]`
104110 |
105111 = help: the following implementations were found:
106112 <[[u16; 3]; 3] as Bar>
107113 <[u16; 4] as Bar>
108114
109- error: aborting due to 6 previous errors
115+ error: aborting due to 6 previous errors; 2 warnings emitted
110116
111117For more information about this error, try `rustc --explain E0277`.
0 commit comments