rust/src/test/ui/const-eval-overflow-2.stderr

16 lines
456 B
Plaintext
Raw Normal View History

error[E0080]: constant evaluation error
--> $DIR/const-eval-overflow-2.rs:21:25
|
2018-02-23 00:42:32 +00:00
LL | const NEG_NEG_128: i8 = -NEG_128;
| ^^^^^^^^ attempt to negate with overflow
|
note: for pattern here
2018-03-05 09:21:11 +00:00
--> $DIR/const-eval-overflow-2.rs:26:9
|
2018-02-23 00:42:32 +00:00
LL | NEG_NEG_128 => println!("A"),
| ^^^^^^^^^^^
error: aborting due to previous error
2018-02-19 20:40:25 +00:00
If you want more information on this error, try using "rustc --explain E0080"