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

14 lines
275 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::Next> as Next>::Next;
//~^ ERROR overflow evaluating the requirement
}
fn main() {}