2017-12-10 13:47:55 -06:00
|
|
|
error[E0080]: constant evaluation error
|
|
|
|
--> $DIR/const-eval-overflow-2.rs:21:25
|
|
|
|
|
|
|
|
|
21 | const NEG_NEG_128: i8 = -NEG_128;
|
|
|
|
| ^^^^^^^^ attempt to negate with overflow
|
|
|
|
|
|
|
|
|
note: for pattern here
|
|
|
|
--> $DIR/const-eval-overflow-2.rs:27:9
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
27 | NEG_NEG_128 => println!("A"),
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0080"
|