]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/floating_point_log.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / floating_point_log.rs
index 01181484e7dee290c0973d60a38a93bd71062905..0590670a50bc799fc6ec2e1bea696630dbc6d627 100644 (file)
@@ -1,5 +1,5 @@
 // run-rustfix
-#![allow(dead_code, clippy::double_parens)]
+#![allow(dead_code, clippy::double_parens, clippy::unnecessary_cast)]
 #![warn(clippy::suboptimal_flops, clippy::imprecise_flops)]
 
 const TWO: f32 = 2.0;
@@ -12,6 +12,7 @@ fn check_log_base() {
     let _ = x.log(std::f32::consts::E);
     let _ = x.log(TWO);
     let _ = x.log(E);
+    let _ = (x as f32).log(2f32);
 
     let x = 1f64;
     let _ = x.log(2f64);