summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21946.rs
blob: 2d99769cfa31c56e9acc692e09def2fde2b20e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
    //~^ ERROR overflow evaluating the requirement `<FooStruct as Foo>::A`
}

fn main() {}