We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002c789 commit 61fecfbCopy full SHA for 61fecfb
src/test/ui/use-module-level-int-consts.rs
@@ -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