Sign in
rust
/
rust
/
b2dfd76fffae30c81ebe6e73b3a1d0a3bd29d330
/
.
/
tests
/
ui
/
consts
/
const-eval
/
overflow_checks.rs
blob: 7f69157779906730a270172f9b322429792f9465 [
file
]
//@ build-pass
//@ compile-flags: -O -C overflow-checks=no
#![
crate_type
=
"lib"
]
#![
feature
(
core_intrinsics
)]
// Always returns true during CTFE, even if overflow checks are disabled.
const
_
:
()
=
assert
!(
core
::
intrinsics
::
overflow_checks
());