]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/repeat_count_const_in_async_fn.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / 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]) {}