We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aafba72 + 09d1e42 commit d978c51Copy full SHA for d978c51
src/runtime.rs
@@ -126,6 +126,14 @@ pub mod ext {
126
}
127
128
129
+ impl<'q, T: 'q, const N: usize> RepAsIteratorExt<'q> for [T; N] {
130
+ type Iter = slice::Iter<'q, T>;
131
+
132
+ fn quote_into_iter(&'q self) -> (Self::Iter, HasIter) {
133
+ (self.iter(), HasIter)
134
+ }
135
136
137
impl<'q, T: 'q> RepAsIteratorExt<'q> for Vec<T> {
138
type Iter = slice::Iter<'q, T>;
139
tests/test.rs
@@ -105,6 +105,9 @@ fn test_array() {
105
106
let ref_slice: &[X] = &[X, X];
107
let _ = quote!(#(#ref_slice #ref_slice)*);
108
109
+ let array_of_array: [[u8; 2]; 2] = [[0; 2]; 2];
110
+ let _ = quote!(#(#(#array_of_array)*)*);
111
112
113
#[test]
0 commit comments