]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const_unsafe_unreachable_ub.stderr
suggest fix for attempted integer identifier in patterns
[rust.git] / tests / 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    = note: entering unreachable code
5    |
6 note: inside `unreachable_unchecked`
7   --> $SRC_DIR/core/src/hint.rs:LL:COL
8 note: inside `foo`
9   --> $DIR/const_unsafe_unreachable_ub.rs:6:18
10    |
11 LL |         false => std::hint::unreachable_unchecked(),
12    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 note: inside `BAR`
14   --> $DIR/const_unsafe_unreachable_ub.rs:10:28
15    |
16 LL | const BAR: bool = unsafe { foo(false) };
17    |                            ^^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0080`.