2018-08-26 15:19:34 +02:00
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:17:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const LEN: usize = ONE - TWO;
|
2018-08-26 15:19:34 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^---------^
|
|
|
|
| |
|
|
|
|
| attempt to subtract with overflow
|
2018-06-25 20:53:02 +02:00
|
|
|
|
|
2018-08-26 15:19:34 +02:00
|
|
|
= note: #[deny(const_err)] on by default
|
2018-03-05 10:21:11 +01:00
|
|
|
|
2018-08-26 15:19:34 +02:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:21:17
|
2018-06-03 03:01:06 +02:00
|
|
|
|
|
|
|
|
LL | let a: [i8; LEN] = unimplemented!();
|
2018-08-26 15:19:34 +02:00
|
|
|
| ^^^ referenced constant has errors
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2018-08-26 15:19:34 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|