Skip to content

Commit 61fecfb

Browse files
committed
Add test accessing the module level int/float consts
1 parent 002c789 commit 61fecfb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// run-pass
2+
3+
// Make sure the module level constants are still there and accessible even after
4+
// the corresponding associated constants have been added, and later stabilized.
5+
use std::{u16, f32};
6+
7+
fn main() {
8+
let _ = u16::MAX;
9+
let _ = f32::EPSILON;
10+
let _ = std::f64::MANTISSA_DIGITS;
11+
}

0 commit comments

Comments
 (0)