]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/point-at-type-on-obligation-failure.rs
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / point-at-type-on-obligation-failure.rs
1 trait Bar {
2     type Ok;
3     type Sibling: Bar2<Ok=Self::Ok>;
4 }
5 trait Bar2 {
6     type Ok;
7 }
8
9 struct Foo;
10 struct Foo2;
11
12 impl Bar for Foo {
13     type Ok = ();
14     type Sibling = Foo2;
15     //~^ ERROR type mismatch resolving `<Foo2 as Bar2>::Ok == ()`
16 }
17 impl Bar2 for Foo2 {
18     type Ok = u32;
19 }
20
21 fn main() {}