rust/tests/ui/consts/const-assert-unchecked-ub.stderr
Trevor Gross 5745c220e6 Stabilize hint_assert_unchecked
Make both `hint_assert_unchecked` and `const_hint_assert_unchecked`
stable as `hint_assert_unchecked`.
2024-06-19 19:31:41 -04:00

10 lines
329 B
Plaintext

error[E0080]: evaluation of constant value failed
--> $DIR/const-assert-unchecked-ub.rs:3:5
|
LL | std::hint::assert_unchecked(n < 32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `assume` called with `false`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.