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

13 lines
385 B
Plaintext
Raw Normal View History

2018-06-02 21:38:57 +00:00
error[E0080]: could not evaluate constant pattern
--> $DIR/const-eval-overflow-2.rs:25:9
|
2018-02-23 00:42:32 +00:00
LL | const NEG_NEG_128: i8 = -NEG_128;
2018-06-02 21:38:57 +00:00
| -------- attempt to negate with overflow
...
2018-02-23 00:42:32 +00:00
LL | NEG_NEG_128 => println!("A"),
| ^^^^^^^^^^^
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0080`.