use a smaller number in test that fits in usize for 32 bit

This commit is contained in:
y21 2023-09-24 16:29:26 +02:00
parent 6ce61d543a
commit 6e80db96ea
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
stack-size-threshold = 4294967296
stack-size-threshold = 1000

View File

@ -7,11 +7,11 @@ fn create_array<const N: usize>() -> [u8; N] {
}
fn f() {
let _x = create_array::<4294967296>();
let _x = create_array::<1000>();
}
fn f2() {
//~^ ERROR: this function allocates a large amount of stack space
let _x = create_array::<4294967297>();
let _x = create_array::<1001>();
}
fn main() {}

View File

@ -3,7 +3,7 @@ error: this function allocates a large amount of stack space
|
LL | / fn f2() {
LL | |
LL | | let _x = create_array::<4294967297>();
LL | | let _x = create_array::<1001>();
LL | | }
| |_^
|