]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/const-eval-overflow-4.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const-eval-overflow-4.stderr
CommitLineData
a1dfa0c6 1error[E0080]: evaluation of constant value failed
0731742a 2 --> $DIR/const-eval-overflow-4.rs:13:13
ff7c6d11 3 |
0531ce1d 4LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
1b1a35ee 5 | ^^^^^^^^^^^^^^^^^^^^^ attempt to compute `i8::MAX + 1_i8`, which would overflow
ff7c6d11 6
a1dfa0c6 7error: aborting due to previous error
ff7c6d11 8
0531ce1d 9For more information about this error, try `rustc --explain E0080`.