]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/point-at-type-on-obligation-failure.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-types / point-at-type-on-obligation-failure.rs
CommitLineData
e74abb32
XL
1trait Bar {
2 type Ok;
3 type Sibling: Bar2<Ok=Self::Ok>;
4}
5trait Bar2 {
6 type Ok;
7}
8
9struct Foo;
10struct Foo2;
11
12impl Bar for Foo {
29967ef6 13 type Ok = ();
e74abb32 14 type Sibling = Foo2;
29967ef6 15 //~^ ERROR type mismatch resolving `<Foo2 as Bar2>::Ok == ()`
e74abb32
XL
16}
17impl Bar2 for Foo2 {
18 type Ok = u32;
19}
20
21fn main() {}