Add regression test for #99647

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-12-21 21:13:55 +09:00
parent 1d12c3cea3
commit ba8d7cd3e1
No known key found for this signature in database

View file

@ -0,0 +1,15 @@
// edition:2018
// run-pass
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
#[allow(unused)]
async fn foo<'a>() {
let _data = &mut [0u8; { 1 + 4 }];
bar().await
}
async fn bar() {}
fn main() {}