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

error: aborting due to previous error