You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% cat a.rsenumFoo{A,B(Foo),}
% rustc a.rs
error: main function not found
a.rs:1:1:4:2 error: recursive type `Foo` has infinite size[E0072]
a.rs:1enumFoo{
a.rs:2A,
a.rs:3B(Foo),
a.rs:4}a.rs:1:1:4:2 help: run `rustc --explain E0072` to see a detailed explanation
a.rs:1:1:4:2 help: insert indirection(e.g., a `Box`, `Rc`, or `&`) at some point to make `Foo` representable
error: aborting due to previous error
Those recently led to OOM in rustc nightly.
Basically lint enum variants containing fields of the same enum type, but stop checking within known pointer classes (box, syntax::ptr::P, ...)
The text was updated successfully, but these errors were encountered: