Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
structs-enums
/
struct-rec
/
issue-17431-4.rs
blob: 48f0dba2aec44a01f2419325cd1a027c0260bd55 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
marker
;
struct
Foo
<
T
>
{
foo
:
Option
<
Option
<
Foo
<
T
>>>,
marker
:
marker
::
PhantomData
<
T
>
}
//~^ ERROR recursive type `Foo` has infinite size
impl
<
T
>
Foo
<
T
>
{
fn
bar
(&
self
)
{}
}
fn
main
()
{}