]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/repeat_count_const_in_async_fn.rs
Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot
[rust.git] / tests / ui / async-await / repeat_count_const_in_async_fn.rs
1 // check-pass
2 // edition:2018
3 // compile-flags: --crate-type=lib
4
5 pub async fn test() {
6     const C: usize = 4;
7     foo(&mut [0u8; C]).await;
8 }
9
10 async fn foo(_: &mut [u8]) {}