Tracking Issue for const_array_each_ref · Issue #133289 · rust-lang/rust (original) (raw)

Feature gate: #![feature(const_array_each_ref)]

This is a tracking issue for supporting the each_ref and each_mut methods in [T; N] in constant expressions.

Public API

impl<T, const N: usize> [T; N] { pub const fn each_ref(&self) -> [&T; N];

pub const fn each_mut(&mut self) -> [&mut T; N];

}

Unresolved Questions