2017-12-10 13:47:55 -06:00
|
|
|
error[E0080]: constant evaluation error
|
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:17:20
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | const LEN: usize = ONE - TWO;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^ attempt to subtract with overflow
|
2018-03-05 03:21:11 -06:00
|
|
|
|
|
|
|
error[E0080]: constant evaluation error
|
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:21:17
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let a: [i8; LEN] = unimplemented!();
|
2018-03-05 03:21:11 -06:00
|
|
|
| ^^^ referenced constant has errors
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-03-05 03:21:11 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0080"
|