15 lines
446 B
Text
15 lines
446 B
Text
error[E0080]: constant evaluation error
|
|
--> $DIR/const-eval-overflow-2.rs:21:25
|
|
|
|
|
LL | const NEG_NEG_128: i8 = -NEG_128;
|
|
| ^^^^^^^^ attempt to negate with overflow
|
|
|
|
|
note: for pattern here
|
|
--> $DIR/const-eval-overflow-2.rs:26:9
|
|
|
|
|
LL | NEG_NEG_128 => println!("A"),
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|