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

14 lines
269 B
Rust

trait Next {
type Next: Next;
}
struct GetNext<T: Next> { t: T }
impl<T: Next> Next for GetNext<T> {
//~^ ERROR overflow evaluating the requirement
type Next = <GetNext<T> as Next>::Next;
//~^ ERROR overflow evaluating the requirement
}
fn main() {}