this ice now requires -Zvalidate-mir
also slightly minimized the test
This commit is contained in:
parent
b550688258
commit
413f095a85
1 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
}],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue