Skip to content

Commit

Permalink
Add regression test for rust-lang#99647
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Dec 22, 2022
1 parent 1d12c3c commit ba8d7cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/const-generics/generic_const_exprs/issue-99647.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit ba8d7cd

Please sign in to comment.