Closed
Description
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:
fn main() {
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