Update based on PR comments
This commit is contained in:
parent
cc8f990e91
commit
7e56265ea0
@ -1,5 +1,6 @@
|
||||
// edition: 2021
|
||||
// run-pass
|
||||
// ignore-pass
|
||||
|
||||
async fn test(_arg: [u8; 8192]) {}
|
||||
|
||||
@ -8,12 +9,12 @@ async fn use_future(fut: impl std::future::Future<Output = ()>) {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let n = std::mem::size_of_val(&use_future(use_future(use_future(use_future(use_future(
|
||||
let actual = std::mem::size_of_val(&use_future(use_future(use_future(use_future(use_future(
|
||||
use_future(use_future(use_future(use_future(use_future(test(
|
||||
[0; 8192]
|
||||
))))))
|
||||
))))));
|
||||
println!("size is: {n}");
|
||||
// Not putting an exact number in case it slightly changes over different commits
|
||||
assert!(n > 8000000);
|
||||
let expected = 8000000;
|
||||
assert!(actual > expected, "expected: >{expected}, actual: {actual}");
|
||||
}
|
Loading…
Reference in New Issue
Block a user