fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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