Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
recursion
/
issue-23122-2.rs
blob: 95e1f60d8b029b607d7dacc9a0785ce84f9c534c [
file
] [
log
] [
blame
]
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
()
{}