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

21 lines
368 B
Rust
Raw Normal View History

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