]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/floating_point_logbase.fixed
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / floating_point_logbase.fixed
index 13962a272d4552b6ccce46a9ff908890e0add9cf..7347bf72cbea6bc2346f5cdb07bc20ba02265191 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.log(y);
+    let _ = (x as f32).log(y);
     let _ = x.log(y);
     let _ = x.log(y);
     let _ = x.log(y);