]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const_unsafe_unreachable_ub.stderr
Update unsuspicious file list
[rustc.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 | intrinsics::unreachable()
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ entering unreachable code
6 |
7 note: inside `unreachable_unchecked`
8 --> $SRC_DIR/core/src/hint.rs:LL:COL
9 |
10 LL | intrinsics::unreachable()
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: inside `foo`
13 --> $DIR/const_unsafe_unreachable_ub.rs:6:18
14 |
15 LL | false => std::hint::unreachable_unchecked(),
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 note: inside `BAR`
18 --> $DIR/const_unsafe_unreachable_ub.rs:10:28
19 |
20 LL | const BAR: bool = unsafe { foo(false) };
21 | ^^^^^^^^^^
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0080`.