From 61fecfb82fe088af6d3a7832b72f298064398aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Thu, 23 Jan 2020 20:10:43 +0100 Subject: [PATCH] Add test accessing the module level int/float consts --- src/test/ui/use-module-level-int-consts.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/ui/use-module-level-int-consts.rs diff --git a/src/test/ui/use-module-level-int-consts.rs b/src/test/ui/use-module-level-int-consts.rs new file mode 100644 index 0000000000000..758fb414eadf2 --- /dev/null +++ b/src/test/ui/use-module-level-int-consts.rs @@ -0,0 +1,11 @@ +// run-pass + +// Make sure the module level constants are still there and accessible even after +// the corresponding associated constants have been added, and later stabilized. +use std::{u16, f32}; + +fn main() { + let _ = u16::MAX; + let _ = f32::EPSILON; + let _ = std::f64::MANTISSA_DIGITS; +}