Normalize MIR locals' types for generator layout computation.
This commit is contained in:
parent
11f6096a9e
commit
8a03147f22
2 changed files with 14 additions and 1 deletions
10
src/test/ui/repeat_count_const_in_async_fn.rs
Normal file
10
src/test/ui/repeat_count_const_in_async_fn.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// 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]) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue