mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
// normalize-stderr-test: "long-type-\d+" -> "long-type-hash"
|
|
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() {}
|