You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICE when calling function as part of vector initializer #5052
rusti> let a = [0, ..ptr::null()];
<anon>:36:14: 36:26 error: expected constant integer for repeat count but found variable
<anon>:36 let a = [0, ..ptr::null()];
^~~~~~~~~~~~
error: aborting due to previous error
rust: task failed at 'explicit failure', /Users/alex/code/rust-opt/src/libsyntax/diagnostic.rs:93
Which is now helpfully an error instead of an ICE!
Activity
alexcrichton commentedon May 22, 2013
Using today's compiler, you now get:
Which is now helpfully an error instead of an ICE!
Merge pull request rust-lang#5052 from rust-lang/rustup-2026-05-20
Merge rust-lang#5052