]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/large_stack_arrays.stderr
iterate List by value
[rust.git] / tests / ui / large_stack_arrays.stderr
index 98d8262372df689a28943141cbd58036dffcd459..58c0a77c1c84136c6205232aa03ef54be3498cf9 100644 (file)
@@ -5,7 +5,7 @@ LL |         [0u32; 20_000_000],
    |         ^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::large-stack-arrays` implied by `-D warnings`
-   = help: consider allocating on the heap with vec![0u32; 20_000_000].into_boxed_slice()
+   = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
 
 error: allocating a local array larger than 512000 bytes
   --> $DIR/large_stack_arrays.rs:18:9
@@ -13,7 +13,7 @@ error: allocating a local array larger than 512000 bytes
 LL |         [S { data: [0; 32] }; 5000],
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = help: consider allocating on the heap with vec![S { data: [0; 32] }; 5000].into_boxed_slice()
+   = 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:19:9
@@ -21,7 +21,7 @@ error: allocating a local array larger than 512000 bytes
 LL |         [Some(""); 20_000_000],
    |         ^^^^^^^^^^^^^^^^^^^^^^
    |
-   = help: consider allocating on the heap with vec![Some(""); 20_000_000].into_boxed_slice()
+   = 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:20:9
@@ -29,7 +29,7 @@ error: allocating a local array larger than 512000 bytes
 LL |         [E::T(0); 5000],
    |         ^^^^^^^^^^^^^^^
    |
-   = help: consider allocating on the heap with vec![E::T(0); 5000].into_boxed_slice()
+   = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
 
 error: aborting due to 4 previous errors