fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: large array defined as const 2 --> $DIR/large_const_arrays.rs:10:1 3 | 4LL | pub(crate) const FOO_PUB_CRATE: [u32; 1_000_000] = [0u32; 1_000_000]; 5 | ^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | help: make this a static item: `static` 8 | 9 = note: `-D clippy::large-const-arrays` implied by `-D warnings` 10 = help: to override `-D warnings` add `#[allow(clippy::large_const_arrays)]` 11 12error: large array defined as const 13 --> $DIR/large_const_arrays.rs:11:1 14 | 15LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000]; 16 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | | 18 | help: make this a static item: `static` 19 20error: large array defined as const 21 --> $DIR/large_const_arrays.rs:12:1 22 | 23LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000]; 24 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 25 | | 26 | help: make this a static item: `static` 27 28error: large array defined as const 29 --> $DIR/large_const_arrays.rs:21:5 30 | 31LL | pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000]; 32 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 | | 34 | help: make this a static item: `static` 35 36error: large array defined as const 37 --> $DIR/large_const_arrays.rs:22:5 38 | 39LL | const BAR: [u32; 1_000_000] = [0u32; 1_000_000]; 40 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | | 42 | help: make this a static item: `static` 43 44error: large array defined as const 45 --> $DIR/large_const_arrays.rs:23:5 46 | 47LL | pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000]; 48 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 49 | | 50 | help: make this a static item: `static` 51 52error: large array defined as const 53 --> $DIR/large_const_arrays.rs:24:5 54 | 55LL | const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000]; 56 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 | | 58 | help: make this a static item: `static` 59 60error: large array defined as const 61 --> $DIR/large_const_arrays.rs:25:5 62 | 63LL | pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000]; 64 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 65 | | 66 | help: make this a static item: `static` 67 68error: large array defined as const 69 --> $DIR/large_const_arrays.rs:26:5 70 | 71LL | const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000]; 72 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 73 | | 74 | help: make this a static item: `static` 75 76error: aborting due to 9 previous errors 77