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

16 lines
527 B
Plaintext
Raw Normal View History

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;
| ^^^^^^^^^ 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
|
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
2018-03-05 03:21:11 -06:00
error: aborting due to 2 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0080"