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:
commit
0039c7d7bf
1 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
//@ check-pass
|
||||
|
||||
type A = [u32; const { 2 }];
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue