summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/duplicate_underscore_argument.rs
blob: 54d748c7ce280fc2b8af175be175a0f04502dcdb (plain)
1
2
3
4
5
6
7
8
9
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);
}