15 lines
415 B
Plaintext
15 lines
415 B
Plaintext
|
error[E0080]: constant evaluation error
|
||
|
--> $DIR/const-len-underflow-separate-spans.rs:17:20
|
||
|
|
|
||
|
17 | const LEN: usize = ONE - TWO;
|
||
|
| ^^^^^^^^^ attempt to subtract with overflow
|
||
|
|
|
||
|
note: for constant expression here
|
||
|
--> $DIR/const-len-underflow-separate-spans.rs:22:12
|
||
|
|
|
||
|
22 | let a: [i8; LEN] = unimplemented!();
|
||
|
| ^^^^^^^^^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|