mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
5745c220e6
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() {}
|