rust/src/test/ui/issues/issue-21946.rs

14 lines
269 B
Rust
Raw Normal View History

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`
}
fn main() {}