os-rust/tests/ui/consts/const-len-underflow-separate-spans.next.stderr

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

16 lines
519 B
Text
Raw Normal View History

2022-09-21 13:05:20 +02:00
error[E0080]: evaluation of constant value failed
--> $DIR/const-len-underflow-separate-spans.rs:10:20
|
2018-02-23 03:42:32 +03:00
LL | const LEN: usize = ONE - TWO;
2022-09-21 13:05:20 +02:00
| ^^^^^^^^^ attempt to compute `1_usize - 2_usize`, which would overflow
2018-03-05 10:21:11 +01:00
note: erroneous constant encountered
--> $DIR/const-len-underflow-separate-spans.rs:14:17
2018-06-03 03:01:06 +02:00
|
LL | let a: [i8; LEN] = unimplemented!();
| ^^^
error: aborting due to 1 previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0080`.