1 error[E0391]: cycle detected when expanding type alias `X`
2 --> $DIR/infinite-vec-type-recursion.rs:1:14
7 = note: ...which immediately requires expanding type alias `X` again
8 = note: type aliases cannot be recursive
9 = help: consider using a struct, enum, or union instead to break the cycle
10 = help: see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information
11 note: cycle used when collecting item types in top-level module
12 --> $DIR/infinite-vec-type-recursion.rs:1:1
14 LL | / type X = Vec<X>;
17 LL | | fn main() { let b: X = Vec::new(); }
18 | |____________________________________^
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0391`.