]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/similar_names.rs
Fix `unnecessary_cast` suggestion when taking a reference
[rust.git] / tests / ui / similar_names.rs
index 5981980988b19b3ade1fdd5b56bb94dcc01dbb16..c21225d153bd6cf7d928592030e8e44a25cb1cc2 100644 (file)
@@ -1,5 +1,11 @@
 #![warn(clippy::similar_names)]
-#![allow(unused, clippy::println_empty_string)]
+#![allow(
+    unused,
+    clippy::println_empty_string,
+    clippy::empty_loop,
+    clippy::diverging_sub_expression,
+    clippy::let_unit_value
+)]
 
 struct Foo {
     apple: i32,
@@ -72,6 +78,13 @@ fn main() {
     let rx1: i32;
     let tx_cake: i32;
     let rx_cake: i32;
+
+    // names often used in win32 code (for example WindowProc)
+    let wparam: i32;
+    let lparam: i32;
+
+    let iter: i32;
+    let item: i32;
 }
 
 fn foo() {