{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreie6zwqnx2w6xidfavitxqbhdqzjvvkllsu6mdq54fxolgvszkokqu",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnzv3huu7r52"
},
"path": "/t/code-compiles-on-playground-but-fails-when-passed-via-stdin-to-rustc/24393#post_3",
"publishedAt": "2026-06-11T17:28:36.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"Rust Playground"
],
"textContent": "The playground defaults to edition 2024. Fails if you select edition 2015: Rust Playground (or 2018 for what it's worth).\n\nworks locally if you pick at least edition 2021:\n\n\n rustc +nightly --crate-name flurb --crate-type=lib --out-dir target/flurb --emit=llvm-ir t.rs --edition 2021\n",
"title": "Code compiles on playground but fails when passed via stdin to rustc"
}