diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-01-23 20:10:43 +0100 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2020-01-23 20:55:07 +0100 |
| commit | 61fecfb82fe088af6d3a7832b72f298064398aff (patch) | |
| tree | 6efe52de6cfdb9ab174e33c244c0e275459329f2 | |
| parent | 002c7897a6c92397f6682bf7e9e86c9b4efd5c51 (diff) | |
| download | rust-61fecfb82fe088af6d3a7832b72f298064398aff.tar.gz rust-61fecfb82fe088af6d3a7832b72f298064398aff.zip | |
Add test accessing the module level int/float consts
| -rw-r--r-- | src/test/ui/use-module-level-int-consts.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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 00000000000..758fb414ead --- /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; +} |
