about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/conditional_array_execution.stderr
blob: 65ae9a9fb8ade2ffa389c1fa9f44c5d7094285c5 (plain)
1
2
3
4
5
6
7
8
9
error[E0080]: attempt to compute `5_u32 - 6_u32`, which would overflow
  --> $DIR/conditional_array_execution.rs:3:19
   |
LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
   |                   ^^^^^ evaluation of constant value failed here

error: aborting due to 1 previous error

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