]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/repeat_count_const_in_async_fn.rs
remove [async output] from impl Future
[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]) {}