mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
223 B
Rust
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() {}
|