rust/tests/ui/recursion/recursive-enum.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
104 B
Rust
Raw Normal View History

enum List<T> { Cons(T, List<T>), Nil }
//~^ ERROR recursive type `List` has infinite size
fn main() {}