Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
infinite
/
infinite-tag-type-recursion.rs
blob: 8578c5545bc90069fe449f2d3972753a31c0649a [
file
] [
log
] [
blame
]
enum
MList
{
Cons
(
isize
,
MList
),
Nil
}
//~^ ERROR recursive type `MList` has infinite size
//~| ERROR cycle detected when computing drop-check constraints for `MList`
fn
main
()
{
let
a
=
MList
::
Cons
(
10
,
MList
::
Cons
(
11
,
MList
::
Nil
));
}