We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab66a6a + f9b139f commit adb3f65Copy full SHA for adb3f65
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 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