We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
iter
1 parent 3321f04 commit 91c902cCopy full SHA for 91c902c
1 file changed
src/iter.rs
@@ -105,3 +105,28 @@ where
105
self.iter_mut()
106
}
107
108
+
109
+#[cfg(test)]
110
+mod tests {
111
+ use crate::{Array, sizes::U3};
112
113
+ #[test]
114
+ fn mut_array_ref_into_iterator() {
115
+ let array_ref: &mut Array<u8, U3> = &mut Array([1, 2, 3]);
116
+ let mut iter = array_ref.into_iter();
117
118
+ for i in 1..=3 {
119
+ assert_eq!(iter.next().copied(), Some(i));
120
+ }
121
122
+ assert_eq!(iter.next(), None);
123
124
125
+ #[cfg(feature = "alloc")]
126
127
+ fn display_try_from_iterator_error() {
128
+ use super::TryFromIteratorError;
129
+ use alloc::string::ToString;
130
+ let _ = TryFromIteratorError.to_string();
131
132
+}
0 commit comments