rustc/tests/ui/recursion/issue-23122-1.rs
2024-06-24 14:48:22 +02:00

15 lines
223 B
Rust

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