Add a regression test for issue 129865
This commit is contained in:
parent
d645a4c9c5
commit
c6b0f7888b
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
//@ compile-flags: -Znext-solver
|
||||
//@ check-pass
|
||||
//@ edition:2021
|
||||
|
||||
pub async fn cleanse_old_array_async(_: &[u8; BUCKET_LEN]) {}
|
||||
|
||||
pub const BUCKET_LEN: usize = 0;
|
||||
|
||||
pub fn cleanse_old_array_async2() -> impl std::future::Future {
|
||||
let x: [u8; 0 + 0] = [];
|
||||
async move { let _ = x; }
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue