Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c25ac7e + f9b139f commit 1960f39Copy full SHA for 1960f39
library/core/tests/num/mod.rs
@@ -27,6 +27,8 @@ mod bignum;
27
mod dec2flt;
28
mod flt2dec;
29
30
+mod nan;
31
+
32
/// Adds the attribute to all items in the block.
33
macro_rules! cfg_block {
34
($(#[$attr:meta]{$($it:item)*})*) => {$($(
src/test/ui/format-nan.rs renamed to library/core/tests/num/nan.rs
@@ -1,7 +1,6 @@
1
-// run-pass
2
-
3
-pub fn main() {
4
- use std::f64;
+#[test]
+fn test_nan() {
+ use core::f64;
5
let x = "NaN".to_string();
6
assert_eq!(format!("{}", f64::NAN), x);
7
assert_eq!(format!("{:e}", f64::NAN), x);
0 commit comments