rust-clippy/tests/ui-toml/toml_disallow/conf_french_disallowed_name.rs

21 lines
368 B
Rust
Raw Normal View History

2016-02-22 14:42:24 +00:00
#![allow(dead_code)]
2018-08-01 20:38:04 +00:00
#![allow(clippy::single_match)]
2016-02-22 14:42:24 +00:00
#![allow(unused_variables)]
#![warn(clippy::disallowed_names)]
2016-02-22 14:42:24 +00:00
2017-02-08 13:58:07 +00:00
fn test(toto: ()) {}
2016-02-22 14:42:24 +00:00
fn main() {
2017-02-08 13:58:07 +00:00
let toto = 42;
let tata = 42;
let titi = 42;
2016-02-22 14:42:24 +00:00
let tatab = 42;
let tatatataic = 42;
match (42, Some(1337), Some(0)) {
(toto, Some(tata), titi @ Some(_)) => (),
_ => (),
}
}