fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
887 B25 linesraw
1error[E0271]: type mismatch resolving `<Concrete as Bar>::Other == Concrete`
2  --> $DIR/issue-99348-impl-compatibility.rs:8:17
3   |
4LL | type Tait = impl Sized;
5   |             ---------- the found opaque type
6...
7LL |     type Item = Concrete;
8   |                 ^^^^^^^^ type mismatch resolving `<Concrete as Bar>::Other == Concrete`
9   |
10note: expected this to be `Concrete`
11  --> $DIR/issue-99348-impl-compatibility.rs:13:18
12   |
13LL |     type Other = Tait;
14   |                  ^^^^
15   = note:   expected struct `Concrete`
16           found opaque type `Tait`
17note: required by a bound in `Foo::Item`
18  --> $DIR/issue-99348-impl-compatibility.rs:17:20
19   |
20LL |     type Item: Bar<Other = Self>;
21   |                    ^^^^^^^^^^^^ required by this bound in `Foo::Item`
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0271`.