Normalize MIR locals' types for generator layout computation.

This commit is contained in:
Oliver Scherer 2020-04-09 16:48:36 +02:00
parent 11f6096a9e
commit 8a03147f22
2 changed files with 14 additions and 1 deletions

View 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]) {}