We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bd32c9 commit 3bf9eb0Copy full SHA for 3bf9eb0
src/test/ui/associated-types/issue-72806.rs
@@ -0,0 +1,20 @@
1
+trait Bar {
2
+ type Ok;
3
+ type Sibling: Bar2<Ok=char>;
4
+}
5
+trait Bar2 {
6
7
8
+
9
+struct Foo;
10
+struct Foo2;
11
12
+impl Bar for Foo { //~ ERROR type mismatch resolving `<Foo2 as Bar2>::Ok == char`
13
+ type Ok = ();
14
+ type Sibling = Foo2;
15
16
+impl Bar2 for Foo2 {
17
+ type Ok = u32;
18
19
20
+fn main() {}
src/test/ui/associated-types/issue-72806.stderr
@@ -0,0 +1,9 @@
+error[E0271]: type mismatch resolving `<Foo2 as Bar2>::Ok == char`
+ --> $DIR/issue-72806.rs:12:6
+ |
+LL | impl Bar for Foo {
+ | ^^^ expected `u32`, found `char`
+error: aborting due to previous error
+For more information about this error, try `rustc --explain E0271`.
0 commit comments