2015-10-24 15:37:28 +00:00
|
|
|
trait Foo {
|
|
|
|
type A;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct FooStruct;
|
|
|
|
|
|
|
|
impl Foo for FooStruct {
|
|
|
|
type A = <FooStruct as Foo>::A;
|
2020-08-13 19:45:08 +00:00
|
|
|
//~^ ERROR overflow evaluating the requirement `<FooStruct as Foo>::A == _`
|
2015-10-24 15:37:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|