2023-09-24 14:56:40 +02:00
|
|
|
error: this function allocates a large amount of stack space
|
|
|
|
--> $DIR/large_stack_frames.rs:12:1
|
|
|
|
|
|
|
|
|
LL | / fn f2() {
|
|
|
|
LL | |
|
2023-09-24 16:29:26 +02:00
|
|
|
LL | | let _x = create_array::<1001>();
|
2023-09-24 14:56:40 +02:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: allocating large amounts of stack space can overflow the stack
|
|
|
|
= note: `-D clippy::large-stack-frames` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|