rust-clippy/tests/ui/duplicate_underscore_argument.rs
2018-08-29 11:08:29 -07:00

13 lines
319 B
Rust

#![feature(tool_lints)]
#![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);
}