]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/non_expressive_names.rs
2 #![allow(unused, clippy::println_empty_string, non_snake_case, clippy::let_unit_value)]
4 #[derive(Clone, Debug)]
17 #[allow(non_fmt_panics)]
18 let filled
= match *self {
19 MaybeInst
::Split1(goto1
) => panic
!("1"),
20 MaybeInst
::Split2(goto2
) => panic
!("2"),
21 _
=> unimplemented
!(),
27 fn underscores_and_numbers() {
28 let _1
= 1; //~ERROR: consider choosing a more descriptive name
29 let ____1
= 1; //~ERROR: consider choosing a more descriptive name
30 let __1___2
= 12; //~ERROR: consider choosing a more descriptive name
40 #[allow(clippy::single_match)]
51 let _1
= 1; //~ERROR: consider choosing a more descriptive name
52 let ____1
= 1; //~ERROR: consider choosing a more descriptive name
53 let __1___2
= 12; //~ERROR: consider choosing a more descriptive name