rust-clippy/tests/ui/duplicate_underscore_argument.rs

14 lines
288 B
Rust
Raw Normal View History

2017-09-18 10:47:33 +00:00
#![warn(duplicate_underscore_argument)]
#[allow(dead_code, unused)]
2017-02-08 13:58:07 +00:00
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);
2017-02-08 13:58:07 +00:00
}