Skip to content

Commit

Permalink
Rollup merge of #105994 - JohnTitor:issue-99647, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #99647

Closes #99647
r? `@compiler-errors`

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
matthiaskrgr authored Dec 27, 2022
2 parents a0bf4f9 + 66ca5cc commit d5b975c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
File renamed without changes.
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 d5b975c

Please sign in to comment.