Sign in
android
/
toolchain
/
rustc
/
da60c8575e02ed54fcffcb7f2f9289b4705b60ff
/
.
/
src
/
tools
/
miri
/
tests
/
compile-fail
/
atomic_non_integer_arithmetic.rs
blob: 8c2ed98b7dfab210d77f9f9ffa60116a35e67612 [
file
] [
log
] [
blame
]
#![
feature
(
core_intrinsics
)]
pub
fn
main
()
{
let
mut
z
:
f64
=
1.0
;
unsafe
{
::
std
::
intrinsics
::
atomic_xadd
(&
mut
z
,
2.0
);
//~^ ERROR: Atomic arithmetic operations only work on integer types
}
}