summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/duplicate_underscore_argument.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/duplicate_underscore_argument.rs')
-rw-r--r--src/tools/clippy/tests/ui/duplicate_underscore_argument.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/duplicate_underscore_argument.rs b/src/tools/clippy/tests/ui/duplicate_underscore_argument.rs
new file mode 100644
index 000000000..54d748c7c
--- /dev/null
+++ b/src/tools/clippy/tests/ui/duplicate_underscore_argument.rs
@@ -0,0 +1,10 @@
+#![warn(clippy::duplicate_underscore_argument)]
+#[allow(dead_code, unused)]
+
+fn join_the_dark_side(darth: i32, _darth: i32) {}
+fn join_the_light_side(knight: i32, _master: i32) {} // the Force is strong with this one
+
+fn main() {
+ join_the_dark_side(0, 0);
+ join_the_light_side(0, 0);
+}