99use alloc:: vec;
1010#[ cfg( not( feature = "std" ) ) ]
1111use alloc:: vec:: Vec ;
12- use std:: mem:: { forget, size_of} ;
13- use std:: ptr:: NonNull ;
1412#[ allow( unused_imports) ]
1513use std:: compile_error;
14+ use std:: mem:: { forget, size_of} ;
15+ use std:: ptr:: NonNull ;
1616
1717use crate :: imp_prelude:: * ;
1818use crate :: { dimension, ArcArray1 , ArcArray2 } ;
@@ -28,11 +28,11 @@ use crate::{dimension, ArcArray1, ArcArray2};
2828///
2929/// let a3 = array![[[1, 2], [3, 4]],
3030/// [[5, 6], [7, 8]]];
31- ///
31+ ///
3232/// let a4 = array![[[[1, 2, 3, 4]]]];
33- ///
33+ ///
3434/// let a5 = array![[[[[1, 2, 3, 4, 5]]]]];
35- ///
35+ ///
3636/// let a6 = array![[[[[[1, 2, 3, 4, 5, 6]]]]]];
3737///
3838/// assert_eq!(a1.shape(), &[4]);
@@ -47,12 +47,12 @@ use crate::{dimension, ArcArray1, ArcArray2};
4747/// elements are moved into the resulting `Array`.
4848///
4949/// Use `array![...].into_shared()` to create an `ArcArray`.
50- ///
50+ ///
5151/// Attempts to crate 7D+ arrays with this macro will lead to
5252/// a compiler error, since the difference between a 7D array
5353/// of i32 and a 6D array of `[i32; 3]` is ambiguous. Higher-dim
5454/// arrays can be created with [`ArrayD`].
55- ///
55+ ///
5656/// ```compile_fail
5757/// use ndarray::array;
5858/// let a7 = array![[[[[[[1, 2, 3]]]]]]];
0 commit comments