Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
structs-enums
/
struct-rec
/
issue-17431-2.rs
blob: f7b9c6a55ddf7009a8c4510b218910a6dde4c96d [
file
] [
log
] [
blame
] [
edit
]
struct
Baz
{
q
:
Option
<
Foo
>
}
//~^ ERROR recursive types `Baz` and `Foo` have infinite size
struct
Foo
{
q
:
Option
<
Baz
>
}
impl
Foo
{
fn
bar
(&
self
)
{}
}
fn
main
()
{}