Sign in
android
/
toolchain
/
rustc
/
bc2a45aebf2f3f158c878db02ee23d906d1269df
/
.
/
src
/
tools
/
miri
/
tests
/
compile-fail
/
exact_div4.rs
blob: 736d4f2516d2ddb6a958870354084091c75a52a9 [
file
] [
log
] [
blame
]
#![
feature
(
core_intrinsics
)]
fn
main
()
{
// divison of min_value by -1
unsafe
{
std
::
intrinsics
::
exact_div
(
i64
::
min_value
(),
-
1
);
}
//~ ERROR result of dividing MIN by -1 cannot be represented
}