rust/src/test/ui/consts/const-len-underflow-separate-spans.stderr

20 lines
635 B
Plaintext
Raw Normal View History

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