]> git.lizzy.rs Git - rust.git/blob - tests/ui/use-module-level-int-consts.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / 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 }