rust/tests/ui/const-generics/issue-105689.rs

15 lines
225 B
Rust
Raw Permalink Normal View History

//@ check-pass
//@ edition:2021
2022-12-14 10:59:29 +00:00
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
#[allow(unused)]
async fn foo<'a>() {
let _data = &mut [0u8; { 1 + 4 }];
bar().await
}
async fn bar() {}
fn main() {}