Sign in
fuchsia
/
third_party
/
rust
/
41601a8c95240cada94c13466a1fea02e5fe87ed
/
.
/
src
/
test
/
ui
/
format-nan.rs
blob: e4a134fa2fbe074fd9a2caa2192902125406a60e [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
use
std
::
f64
;
let
x
=
"NaN"
.
to_string
();
assert_eq
!(
format
!(
"{}"
,
f64
::
NAN
),
x
);
assert_eq
!(
format
!(
"{:e}"
,
f64
::
NAN
),
x
);
assert_eq
!(
format
!(
"{:E}"
,
f64
::
NAN
),
x
);
}