]> git.lizzy.rs Git - rust.git/blob - tests/ui/duplicate_underscore_argument.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / duplicate_underscore_argument.rs
1 #![feature(tool_lints)]
2
3
4 #![warn(clippy::duplicate_underscore_argument)]
5 #[allow(dead_code, unused)]
6
7 fn join_the_dark_side(darth: i32, _darth: i32) {}
8 fn join_the_light_side(knight: i32, _master: i32) {} // the Force is strong with this one
9
10 fn main() {
11     join_the_dark_side(0, 0);
12     join_the_light_side(0, 0);
13 }