Skip to content

Commit

Permalink
Add test accessing the module level int/float consts
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jan 23, 2020
1 parent 002c789 commit 61fecfb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/use-module-level-int-consts.rs
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 61fecfb

Please sign in to comment.