Skip to content

Commit 413f095

Browse files
committed
this ice now requires -Zvalidate-mir
also slightly minimized the test
1 parent b550688 commit 413f095

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/crashes/120016.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
//@ known-bug: #120016
2-
//@ compile-flags: -Zcrate-attr=feature(const_async_blocks)
2+
//@ compile-flags: -Zvalidate-mir
33
//@ edition: 2021
44

5-
#![feature(type_alias_impl_trait, const_async_blocks)]
5+
#![feature(type_alias_impl_trait)]
66

77
struct Bug {
88
V1: [(); {
9-
type F = impl std::future::Future<Output = impl Sized>;
9+
type F = impl Sized;
1010
#[define_opaque(F)]
1111
fn concrete_use() -> F {
12-
//~^ ERROR to be a future that resolves to `u8`, but it resolves to `()`
13-
async {}
12+
//~^ ERROR
13+
1i32
1414
}
15-
let f: F = async { 1 };
16-
//~^ ERROR `async` blocks are not allowed in constants
15+
let f: F = 0u32;
16+
1717
1
1818
}],
1919
}

0 commit comments

Comments
 (0)