rust/tests/ui/const-generics/generic_const_exprs/issue-99647.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
222 B
Rust
Raw Normal View History

// 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() {}