mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 01:24:05 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
459 B
Text
15 lines
459 B
Text
error: this function allocates a large amount of stack space
|
|
--> $DIR/large_stack_frames.rs:12:1
|
|
|
|
|
LL | / fn f2() {
|
|
LL | |
|
|
LL | | let _x = create_array::<1001>();
|
|
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 1 previous error
|
|
|