summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/generic_const_exprs/issue-99647.rs
blob: f797beda8e6c547377d4bf5bfc67b33d15e2f284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}