1 error[E0080]: evaluation of constant value failed
2 --> $SRC_DIR/core/src/hint.rs:LL:COL
4 = note: entering unreachable code
6 note: inside `unreachable_unchecked`
7 --> $SRC_DIR/core/src/hint.rs:LL:COL
9 --> $DIR/const_unsafe_unreachable_ub.rs:6:18
11 LL | false => std::hint::unreachable_unchecked(),
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 --> $DIR/const_unsafe_unreachable_ub.rs:10:28
16 LL | const BAR: bool = unsafe { foo(false) };
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0080`.