2017-12-10 22:47:55 +03:00
|
|
|
error[E0080]: constant evaluation error
|
|
|
|
|
--> $DIR/const-eval-overflow-2.rs:21:25
|
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const NEG_NEG_128: i8 = -NEG_128;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^ attempt to negate with overflow
|
|
|
|
|
|
|
|
|
|
|
note: for pattern here
|
2018-03-05 10:21:11 +01:00
|
|
|
--> $DIR/const-eval-overflow-2.rs:26:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | NEG_NEG_128 => println!("A"),
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|