Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
sized
/
recursive-type-binding.rs
blob: 7d95417a6ffd97ed0deffc8d0788783684e487b6 [
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
<()>;
}