External Publication
Visit Post

Code compiles on playground but fails when passed via stdin to rustc

Rust Internals [Unofficial] June 11, 2026
Source

I think that if there is no edition and there's a compiler error (not just warning), compiling again with newer editions just for better diagnostics would be so damn cool.

Something like Note: this compiles on edition 2024 (or even on editions: 2021, 2024)

This makes code with no edition fail to compile slower, but people shouldn't be developing with no edition set (and code already developed usually doesn't fail to compile and isn't affected)

Discussion in the ATmosphere

Loading comments...