Ask questionsFirst example fails to induce E0072

I copied the very first code sample, namely

pub mod first;

pub enum List {
    Elem(i32, List),

According to the book, this should prompt the compiler to issue E0072. However, on my machine it builds just fine!

I also tried the example from the documentation on E0072, but got the same behavior, on both Windows and WSL.

What could be causing this?


Answer questions Gankra

No idea what's happening for you, but it definitely seems to still not build on nightly:

My only guess is that you're literally not building the file you put that code in?


Related questions

second "let new_tail =" shadows first one in push! hot 1
Github User Rank List