2019-11-12 16:22:53 -06:00
|
|
|
error: allocating a local array larger than 512000 bytes
|
2022-09-21 12:02:37 -05:00
|
|
|
--> $DIR/large_stack_arrays.rs:23:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [0u32; 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2022-09-21 12:02:37 -05:00
|
|
|
--> $DIR/large_stack_arrays.rs:24:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [S { data: [0; 32] }; 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2022-09-21 12:02:37 -05:00
|
|
|
--> $DIR/large_stack_arrays.rs:25:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [Some(""); 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2022-09-21 12:02:37 -05:00
|
|
|
--> $DIR/large_stack_arrays.rs:26:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [E::T(0); 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
2023-02-28 06:45:19 -06:00
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
|
|
--> $DIR/large_stack_arrays.rs:27:9
|
|
|
|
|
|
|
|
|
LL | [0u8; usize::MAX],
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2019-11-12 16:22:53 -06:00
|
|
|
|