]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_unsafe_unreachable_ub.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const_unsafe_unreachable_ub.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $SRC_DIR/core/src/hint.rs:LL:COL
3    |
4 LL |     unsafe { intrinsics::unreachable() }
5    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |              |
7    |              entering unreachable code
8    |              inside `unreachable_unchecked` at $SRC_DIR/core/src/hint.rs:LL:COL
9    |
10   ::: $DIR/const_unsafe_unreachable_ub.rs:6:18
11    |
12 LL |         false => std::hint::unreachable_unchecked(),
13    |                  ---------------------------------- inside `foo` at $DIR/const_unsafe_unreachable_ub.rs:6:18
14 ...
15 LL | const BAR: bool = unsafe { foo(false) };
16    |                            ---------- inside `BAR` at $DIR/const_unsafe_unreachable_ub.rs:10:28
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0080`.