2018-07-28 10:34:52 -05:00
|
|
|
#![warn(clippy::duplicate_underscore_argument)]
|
2016-01-03 07:00:42 -06:00
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
fn join_the_dark_side(darth: i32, _darth: i32) {}
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: `darth` already exists, having another argument having almost the same name ma
|
|
|
|
//~| NOTE: `-D clippy::duplicate-underscore-argument` implied by `-D warnings`
|
2016-01-03 07:00:42 -06:00
|
|
|
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);
|
2017-02-08 07:58:07 -06:00
|
|
|
}
|