about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeepster4096 <19316085+beepster4096@users.noreply.github.com>2025-09-26 15:37:19 -0700
committerbeepster4096 <19316085+beepster4096@users.noreply.github.com>2025-09-26 15:37:19 -0700
commit413f095a85adb21331f6e64cf030ead124a6ba07 (patch)
tree945b43acb237f0042d18f0f25895bd6065b9eb73
parentb550688258ddc29618ebd2fa0b6b4a518f12c0e4 (diff)
downloadrust-413f095a85adb21331f6e64cf030ead124a6ba07.tar.gz
rust-413f095a85adb21331f6e64cf030ead124a6ba07.zip
this ice now requires -Zvalidate-mir
also slightly minimized the test
-rw-r--r--tests/crashes/120016.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/crashes/120016.rs b/tests/crashes/120016.rs
index 7eda330e7ad..12f54dbc3d9 100644
--- a/tests/crashes/120016.rs
+++ b/tests/crashes/120016.rs
@@ -1,19 +1,19 @@
 //@ known-bug: #120016
-//@ compile-flags: -Zcrate-attr=feature(const_async_blocks)
+//@ compile-flags: -Zvalidate-mir
 //@ edition: 2021
 
-#![feature(type_alias_impl_trait, const_async_blocks)]
+#![feature(type_alias_impl_trait)]
 
 struct Bug {
     V1: [(); {
-        type F = impl std::future::Future<Output = impl Sized>;
+        type F = impl Sized;
         #[define_opaque(F)]
         fn concrete_use() -> F {
-            //~^ ERROR to be a future that resolves to `u8`, but it resolves to `()`
-            async {}
+            //~^ ERROR
+            1i32
         }
-        let f: F = async { 1 };
-        //~^ ERROR `async` blocks are not allowed in constants
+        let f: F = 0u32;
+
         1
     }],
 }