]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const-eval-overflow-2.stderr
e99d409880e072fdd07ae6810c3070d3e8caaef0
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow-2.stderr
1 error[E0080]: could not evaluate constant pattern
2   --> $DIR/const-eval-overflow-2.rs:25:9
3    |
4 LL | const NEG_NEG_128: i8 = -NEG_128;
5    |                         -------- attempt to negate with overflow
6 ...
7 LL |         NEG_NEG_128 => println!("A"),
8    |         ^^^^^^^^^^^
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0080`.