Skip to content

Commit 64b5499

Browse files
authored
Unrolled build for #149421
Rollup merge of #149421 - ShoyuVanilla:regression-129865, r=chenyukang Add a regression test for issue 129865 Closes #129865 Looks like the previous versions (`< 1.85.0`) failed to normalize async block's upvar types containing constants but not anymore
2 parents 467250d + c6b0f78 commit 64b5499

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//@ compile-flags: -Znext-solver
2+
//@ check-pass
3+
//@ edition:2021
4+
5+
pub async fn cleanse_old_array_async(_: &[u8; BUCKET_LEN]) {}
6+
7+
pub const BUCKET_LEN: usize = 0;
8+
9+
pub fn cleanse_old_array_async2() -> impl std::future::Future {
10+
let x: [u8; 0 + 0] = [];
11+
async move { let _ = x; }
12+
}
13+
14+
fn main() {}

0 commit comments

Comments
 (0)