blob: 5c05b813048b827289cf1e7be83157a1b40c7df4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(hint_assert_unchecked)]
#![feature(const_hint_assert_unchecked)]
const _: () = unsafe {
let n = u32::MAX.count_ones();
std::hint::assert_unchecked(n < 32); //~ ERROR evaluation of constant value failed
};
fn main() {
}
|