Sign in
fuchsia
/
third_party
/
rust
/
87ef96d3946ed4add766c0a2cd72d8443e92e4a0
/
.
/
src
/
test
/
ui
/
infinite
/
infinite-tag-type-recursion.rs
blob: 87a9e08dd381a64837b7cc68765386a86fec5ce6 [
file
] [
log
] [
blame
]
enum
MList
{
Cons
(
isize
,
MList
),
Nil
}
//~^ ERROR recursive type `MList` has infinite size
fn
main
()
{
let
a
=
MList
::
Cons
(
10
,
MList
::
Cons
(
11
,
MList
::
Nil
));
}