-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
&Box<[T; N]> doesn't impl IntoIterator #155577
Copy link
Copy link
Open
Labels
A-arrayArea: `[T; N]`Area: `[T; N]`A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationA-iteratorsArea: IteratorsArea: IteratorsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.F-negative_impls#![feature(negative_impls)]#![feature(negative_impls)]T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-arrayArea: `[T; N]`Area: `[T; N]`A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationA-iteratorsArea: IteratorsArea: IteratorsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.F-negative_impls#![feature(negative_impls)]#![feature(negative_impls)]T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=04a2170785a4ddc68cf07d0757f41fb3
I expected to see this happen: compiles successfully and iterates over the boxed array.
Instead, this happened:
Meta
rustc --version --verbose: (from playground)