summary refs log tree commit diff
path: root/src/test/ui/const-eval-overflow-2.stderr
blob: e99d409880e072fdd07ae6810c3070d3e8caaef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0080]: could not evaluate constant pattern
  --> $DIR/const-eval-overflow-2.rs:25:9
   |
LL | const NEG_NEG_128: i8 = -NEG_128;
   |                         -------- attempt to negate with overflow
...
LL |         NEG_NEG_128 => println!("A"),
   |         ^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.