rust/src/test/ui/issues/issue-21946.rs
John Kåre Alsaker 01f7450ae4 Update tests
2019-03-06 04:47:08 +01:00

13 lines
269 B
Rust

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