rust/src/test/ui/issues/issue-23122-1.rs

13 lines
218 B
Rust
Raw Normal View History

2016-06-16 02:46:25 -05:00
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;
}
fn main() {}