rust/tests/ui/consts/const-eval/const-eval-overflow-3.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
332 B
Plaintext
Raw Normal View History

error[E0080]: evaluation of constant value failed
--> $DIR/const-eval-overflow-3.rs:18:11
2018-08-08 12:28:26 +00:00
|
LL | = [0; (i8::MAX + 1) as usize];
| ^^^^^^^^^^^^^ attempt to compute `i8::MAX + 1_i8`, which would overflow
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0080`.