summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21946.rs
blob: d7a6c656df98f17cab49f960f3913a9a8d06652b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait Foo {
    type A;
}

struct FooStruct;

impl Foo for FooStruct {
//~^ ERROR overflow evaluating the requirement `<FooStruct as Foo>::A`
    type A = <FooStruct as Foo>::A;
}

fn main() {}