]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/duplicate_underscore_argument.stderr
Fix adjacent code
[rust.git] / tests / ui / duplicate_underscore_argument.stderr
index 0550aaae566f6b5b85d9d6a8d3e3acf4813c38c0..f71614a5fd16e199c5688cc6dacf335c1d303a50 100644 (file)
@@ -1,14 +1,10 @@
 error: `darth` already exists, having another argument having almost the same name makes code comprehension and documentation more difficult
- --> $DIR/duplicate_underscore_argument.rs:7:23
-  |
-7 | fn join_the_dark_side(darth: i32, _darth: i32) {} //~ERROR `darth` already exists
-  |                       ^^^^^
-  |
-note: lint level defined here
- --> $DIR/duplicate_underscore_argument.rs:4:9
-  |
-4 | #![deny(duplicate_underscore_argument)]
-  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/duplicate_underscore_argument.rs:4:23
+   |
+LL | fn join_the_dark_side(darth: i32, _darth: i32) {}
+   |                       ^^^^^
+   |
+   = note: `-D clippy::duplicate-underscore-argument` implied by `-D warnings`
 
 error: aborting due to previous error