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
A fixed-length array expression with a repeat count with the high bit set and no suffix is incorrectly treated as a negative count.
On a 64-bit machine:
fnmain(){let x = [0u, ..9223372036854775808];}
This results in
unnamed.rs:2:20: 2:39 error: expected positive integer for repeat count but found negative integer
unnamed.rs:2 let x = [0u, ..9223372036854775808];
^~~~~~~~~~~~~~~~~~~
error: aborting due to previous error