Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
consts
/
const-assert-unchecked-ub.rs
blob: 5c05b813048b827289cf1e7be83157a1b40c7df4 [
file
] [
log
] [
blame
]
#![
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
()
{
}