2019-11-12 23:22:53 +01:00
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
|
|
--> $DIR/large_stack_arrays.rs:17:9
|
|
|
|
|
|
|
|
|
LL | [0u32; 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
|
2020-01-06 07:36:33 +01:00
|
|
|
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
|
2019-11-12 23:22:53 +01:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
|
|
--> $DIR/large_stack_arrays.rs:18:9
|
|
|
|
|
|
|
|
|
LL | [S { data: [0; 32] }; 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
|
2019-11-12 23:22:53 +01:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
|
|
--> $DIR/large_stack_arrays.rs:19:9
|
|
|
|
|
|
|
|
|
LL | [Some(""); 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
|
2019-11-12 23:22:53 +01:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
|
|
--> $DIR/large_stack_arrays.rs:20:9
|
|
|
|
|
|
|
|
|
LL | [E::T(0); 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
|
2019-11-12 23:22:53 +01:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|