]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/issue-99647.rs
Add regression test for #99647
[rust.git] / src / test / ui / const-generics / generic_const_exprs / issue-99647.rs
1 // edition:2018
2 // run-pass
3
4 #![allow(incomplete_features)]
5 #![feature(generic_const_exprs)]
6
7 #[allow(unused)]
8 async fn foo<'a>() {
9     let _data = &mut [0u8; { 1 + 4 }];
10     bar().await
11 }
12
13 async fn bar() {}
14
15 fn main() {}