Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
sized
/
recursive-type-binding.rs
blob: 52de04afd66d339383950f0680724142c4c1c0b6 [
file
] [
log
] [
blame
]
//@ build-fail
//~^ ERROR cycle detected when computing layout of `Foo<()>`
trait
A
{
type
Assoc
:
?
Sized
;
}
impl
A
for
()
{
type
Assoc
=
Foo
<()>;
}
struct
Foo
<
T
:
A
>(
T
::
Assoc
);
fn
main
()
{
let
x
:
Foo
<()>;
}