Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
repeat_count_const_in_async_fn.rs
blob: 5e40df271164b5139f5aa06cd76de8fc66d6e861 [
file
] [
log
] [
blame
]
//@ check-pass
//@ edition:2018
//@ compile-flags: --crate-type=lib
pub
async
fn
test
()
{
const
C
:
usize
=
4
;
foo
(&
mut
[
0u8
;
C
]).
await
;
}
async
fn
foo
(
_
:
&
mut
[
u8
])
{}