We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b550688 commit 413f095Copy full SHA for 413f095
tests/crashes/120016.rs
@@ -1,19 +1,19 @@
1
//@ known-bug: #120016
2
-//@ compile-flags: -Zcrate-attr=feature(const_async_blocks)
+//@ compile-flags: -Zvalidate-mir
3
//@ edition: 2021
4
5
-#![feature(type_alias_impl_trait, const_async_blocks)]
+#![feature(type_alias_impl_trait)]
6
7
struct Bug {
8
V1: [(); {
9
- type F = impl std::future::Future<Output = impl Sized>;
+ type F = impl Sized;
10
#[define_opaque(F)]
11
fn concrete_use() -> F {
12
- //~^ ERROR to be a future that resolves to `u8`, but it resolves to `()`
13
- async {}
+ //~^ ERROR
+ 1i32
14
}
15
- let f: F = async { 1 };
16
- //~^ ERROR `async` blocks are not allowed in constants
+ let f: F = 0u32;
+
17
18
}],
19
0 commit comments