{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiddsq4hoyye7pocp3hcgq72iplyxjxqsukbscwt2a3uqslpxhdufu",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnzv36wpdbi2"
},
"path": "/t/code-compiles-on-playground-but-fails-when-passed-via-stdin-to-rustc/24393#post_5",
"publishedAt": "2026-06-11T17:56:47.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"IntoIterator for arrays"
],
"textContent": "The relevant edition change for that error is 2021's IntoIterator for arrays.\n\n> Calls to `IntoIterator::into_iter` are _hidden_ in Rust 2015 and Rust 2018 when using method call syntax (i.e., `array.into_iter()`). So, `array.into_iter()` still resolves to `(&array).into_iter()` as it has before.",
"title": "Code compiles on playground but fails when passed via stdin to rustc"
}