rust/src/test/ui/issues/issue-23122-2.rs
2022-02-12 13:39:52 +00:00

15 lines
229 B
Rust

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