3 const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
4 //~^ERROR: any use of this value
5 //~|WARN: previously accepted
7 #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/5391
9 println!("{}", FOO); //~ERROR: post-monomorphization error
10 //~|ERROR: evaluation of constant value failed
11 //~|ERROR: erroneous constant used
12 //~|WARN: previously accepted