2015-10-24 10:37:28 -05:00
|
|
|
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;
|
2019-02-23 16:25:30 -06:00
|
|
|
//~^ ERROR overflow evaluating the requirement `<FooStruct as Foo>::A`
|
2015-10-24 10:37:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|