blob: 9cee718c286b6079599e531292990af90b245d57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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`.
|