]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use-module-level-int-consts.rs
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[rust.git] / src / test / ui / use-module-level-int-consts.rs
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 #![allow(deprecated, deprecated_in_future)]
6 use std::{u16, f32};
7
8 fn main() {
9     let _ = u16::MAX;
10     let _ = f32::EPSILON;
11     let _ = std::f64::MANTISSA_DIGITS;
12 }