1
Fork 0

Rollup merge of #139893 - reddevilmidzy:add-test, r=SparrowLii

Add test for issue 125668

closes: #125668

The issue stemmed from improper handling of const {} blocks used in array length expressions. As of rustc 1.80.0-nightly (804421dff 2024-06-07), this ICE no longer occurs and the code compiles successfully 😀
This commit is contained in:
Matthias Krüger 2025-04-16 13:45:32 +02:00 committed by GitHub
commit 0039c7d7bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,5 @@
//@ check-pass
type A = [u32; const { 2 }];
fn main() {}