fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: evaluation of constant value failed 2 --> $DIR/const-eval-overflow-2.rs:11:25 3 | 4LL | const NEG_NEG_128: i8 = -NEG_128; 5 | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow 6 7error: could not evaluate constant pattern 8 --> $DIR/const-eval-overflow-2.rs:15:9 9 | 10LL | NEG_NEG_128 => println!("A"), 11 | ^^^^^^^^^^^ 12 13error: aborting due to 2 previous errors 14 15For more information about this error, try `rustc --explain E0080`.