mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 14:02:57 +00:00
![Trevor Gross](/assets/img/avatar_default.png)
Make both `hint_assert_unchecked` and `const_hint_assert_unchecked` stable as `hint_assert_unchecked`.
7 lines
162 B
Rust
7 lines
162 B
Rust
const _: () = unsafe {
|
|
let n = u32::MAX.count_ones();
|
|
std::hint::assert_unchecked(n < 32); //~ ERROR evaluation of constant value failed
|
|
};
|
|
|
|
fn main() {}
|