summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issue-105689.rs
blob: 4237b3cad8e7fd8d33779d104a3145af382c89e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass
// edition:2021
#![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() {}