]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/duplicate_underscore_argument.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / tools / clippy / tests / ui / duplicate_underscore_argument.rs
1 #![warn(clippy::duplicate_underscore_argument)]
2 #[allow(dead_code, unused)]
3
4 fn join_the_dark_side(darth: i32, _darth: i32) {}
5 fn join_the_light_side(knight: i32, _master: i32) {} // the Force is strong with this one
6
7 fn main() {
8     join_the_dark_side(0, 0);
9     join_the_light_side(0, 0);
10 }