diff --git a/tests/ui/future-sizes/future-as-arg.rs b/tests/ui/async-await/future-sizes/future-as-arg.rs similarity index 64% rename from tests/ui/future-sizes/future-as-arg.rs rename to tests/ui/async-await/future-sizes/future-as-arg.rs index e021ff512e3..8ebb527bd10 100644 --- a/tests/ui/future-sizes/future-as-arg.rs +++ b/tests/ui/async-await/future-sizes/future-as-arg.rs @@ -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) { } 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}"); } diff --git a/tests/ui/future-sizes/large-arg.rs b/tests/ui/async-await/future-sizes/large-arg.rs similarity index 100% rename from tests/ui/future-sizes/large-arg.rs rename to tests/ui/async-await/future-sizes/large-arg.rs diff --git a/tests/ui/future-sizes/large-arg.stdout b/tests/ui/async-await/future-sizes/large-arg.stdout similarity index 100% rename from tests/ui/future-sizes/large-arg.stdout rename to tests/ui/async-await/future-sizes/large-arg.stdout