mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
error: allocating a local array larger than 512000 bytes
|
|
--> $DIR/large_stack_arrays.rs:23:9
|
|
|
|
|
LL | [0u32; 20_000_000],
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
|
|
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
--> $DIR/large_stack_arrays.rs:24:9
|
|
|
|
|
LL | [S { data: [0; 32] }; 5000],
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
--> $DIR/large_stack_arrays.rs:25:9
|
|
|
|
|
LL | [Some(""); 20_000_000],
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
|
--> $DIR/large_stack_arrays.rs:26:9
|
|
|
|
|
LL | [E::T(0); 5000],
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|