diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-04-08 00:04:33 +0200 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2020-04-08 00:43:27 +0200 |
| commit | b192f2cd1592fc882b29bfad5baf3bfaa7acde2f (patch) | |
| tree | 65d3a699df83ea83ead4c2f6f1a1fb7619a65527 /tests/ui/float_cmp_const.rs | |
| parent | c2f67e1e19ba63b96b1b6f7b0fe33d1ea907396e (diff) | |
Use primitive type assoc consts in more tests
Diffstat (limited to 'tests/ui/float_cmp_const.rs')
| -rw-r--r-- | tests/ui/float_cmp_const.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/float_cmp_const.rs b/tests/ui/float_cmp_const.rs index 8f4ad15720b..a338040e19b 100644 --- a/tests/ui/float_cmp_const.rs +++ b/tests/ui/float_cmp_const.rs @@ -37,8 +37,8 @@ fn main() { // no errors, zero and infinity values ONE != 0f32; TWO == 0f32; - ONE != ::std::f32::INFINITY; - ONE == ::std::f32::NEG_INFINITY; + ONE != f32::INFINITY; + ONE == f32::NEG_INFINITY; // no errors, but will warn clippy::float_cmp if '#![allow(float_cmp)]' above is removed let w = 1.1; |
