2 Compiling cons-list v0.1.0 (file:///projects/cons-list)
3 error[E0072]: recursive type `List` has infinite size
7 | ^^^^^^^^^ recursive type has infinite size
9 | ---- recursive without indirection
11 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `List` representable
13 2 | Cons(i32, Box<List>),
16 error[E0391]: cycle detected when computing drop-check constraints for `List`
22 = note: ...which again requires computing drop-check constraints for `List`, completing the cycle
23 = note: cycle used when computing dropck types for `Canonical { max_universe: U0, variables: [], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing }, value: List } }`
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0072, E0391.
28 For more information about an error, try `rustc --explain E0072`.
29 error: could not compile `cons-list`
31 To learn more, run the command again with --verbose.