mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
5745c220e6
Make both `hint_assert_unchecked` and `const_hint_assert_unchecked` stable as `hint_assert_unchecked`.
10 lines
329 B
Plaintext
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`.
|