mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
core: add tracking issue for array::repeat
This commit is contained in:
parent
1a8b0d7c53
commit
e1aacea74d
@ -49,7 +49,7 @@ pub use iter::IntoIter;
|
||||
/// assert_eq!(strings, ["Hello there!", "Hello there!"]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "array_repeat", issue = "none")]
|
||||
#[unstable(feature = "array_repeat", issue = "126695")]
|
||||
pub fn repeat<T: Clone, const N: usize>(val: T) -> [T; N] {
|
||||
from_trusted_iterator(repeat_n(val, N))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user