1 warning: attempt to subtract with overflow
2 --> $DIR/conditional_array_execution.rs:13:19
4 LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
7 = note: #[warn(const_err)] on by default
9 error[E0080]: constant evaluation error
10 --> $DIR/conditional_array_execution.rs:17:20
12 LL | println!("{}", FOO); //~ E0080
13 | ^^^ referenced constant has errors
15 error: aborting due to previous error
17 If you want more information on this error, try using "rustc --explain E0080"