]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/floating_point_logbase.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / floating_point_logbase.rs
index 26bc20d5370b1f0a6f678d1b7d54b6fe447487d8..ba5b8d406928396e90caa41f79f944bc794057b8 100644 (file)
@@ -1,10 +1,12 @@
 // run-rustfix
 #![warn(clippy::suboptimal_flops)]
+#![allow(clippy::unnecessary_cast)]
 
 fn main() {
     let x = 3f32;
     let y = 5f32;
     let _ = x.ln() / y.ln();
+    let _ = (x as f32).ln() / y.ln();
     let _ = x.log2() / y.log2();
     let _ = x.log10() / y.log10();
     let _ = x.log(5f32) / y.log(5f32);