Update based on PR comments

This commit is contained in:
Bryan Garza 2023-01-31 17:04:18 +00:00
parent cc8f990e91
commit 7e56265ea0
3 changed files with 4 additions and 3 deletions

View File

@ -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}");
}