blob: 860716c1f3855167af2bcc392a430eab69669d4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error: attempt to subtract with overflow
--> $DIR/const-len-underflow-subspans.rs:18:17
|
LL | let a: [i8; ONE - TWO] = unimplemented!();
| ^^^^^^^^^
|
= note: #[deny(const_err)] on by default
error[E0080]: could not evaluate constant expression
--> $DIR/const-len-underflow-subspans.rs:18:12
|
LL | let a: [i8; ONE - TWO] = unimplemented!();
| ^^^^^---------^
| |
| attempt to subtract with overflow
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0080`.
|