{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreih6x6dyejv7vpxxqzlpca63svgo4yprl353x4alhgq4slm6wtdk6m",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mo2cibbuqoq2"
  },
  "path": "/t/code-compiles-on-playground-but-fails-when-passed-via-stdin-to-rustc/24393#post_8",
  "publishedAt": "2026-06-11T21:29:26.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "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.\n\nSomething like `Note: this compiles on edition 2024` (or even `on editions: 2021, 2024`)\n\nThis 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)",
  "title": "Code compiles on playground but fails when passed via stdin to rustc"
}