Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
76d4bfb1c62e6e0a6fc64ceaa39472b0790419c7
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
intrinsics
/
exact_div3.rs
blob: 50ee538646578277d22d48b35f13fcbad4d371f7 [
file
] [
log
] [
blame
]
#![
feature
(
core_intrinsics
)]
fn
main
()
{
// signed division with a remainder
unsafe
{
std
::
intrinsics
::
exact_div
(-
19i8
,
2
)
};
//~ ERROR: -19_i8 cannot be divided by 2_i8 without remainder
}