Sign in
fuchsia
/
third_party
/
rust
/
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
/
.
/
tests
/
ui
/
structs-enums
/
enum-rec
/
issue-17431-6.rs
blob: a3b510848dcd38b0b0cd96911837cf6245cd0ee5 [
file
] [
log
] [
blame
]
use
std
::
cell
::
UnsafeCell
;
enum
Foo
{
X
(
UnsafeCell
<
Option
<
Foo
>>)
}
//~^ ERROR recursive type `Foo` has infinite size
//~| ERROR cycle detected
impl
Foo
{
fn
bar
(
self
)
{}
}
fn
main
()
{}