mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
20 lines
368 B
Rust
20 lines
368 B
Rust
#![allow(dead_code)]
|
|
#![allow(clippy::single_match)]
|
|
#![allow(unused_variables)]
|
|
#![warn(clippy::disallowed_names)]
|
|
|
|
fn test(toto: ()) {}
|
|
|
|
fn main() {
|
|
let toto = 42;
|
|
let tata = 42;
|
|
let titi = 42;
|
|
|
|
let tatab = 42;
|
|
let tatatataic = 42;
|
|
|
|
match (42, Some(1337), Some(0)) {
|
|
(toto, Some(tata), titi @ Some(_)) => (),
|
|
_ => (),
|
|
}
|
|
}
|