use a smaller number in test that fits in usize for 32 bit
This commit is contained in:
parent
6ce61d543a
commit
6e80db96ea
@ -1 +1 @@
|
||||
stack-size-threshold = 4294967296
|
||||
stack-size-threshold = 1000
|
||||
|
@ -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() {}
|
||||
|
@ -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 | | }
|
||||
| |_^
|
||||
|
|
||||
|
Loading…
x
Reference in New Issue
Block a user