]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/non_expressive_names.rs
3 #![warn(clippy,similar_names)]
59 (cheese2
, 2) => panic
!(),
84 let Foo { apple, bpple }
= unimplemented
!();
85 let Foo
{ apple
: spring
,
86 bpple
: sprang
} = unimplemented
!();
89 #[derive(Clone, Debug)]
102 let filled
= match *self {
103 MaybeInst
::Split1(goto1
) => panic
!(1),
104 MaybeInst
::Split2(goto2
) => panic
!(2),
105 _
=> unimplemented
!(),
113 let (b
, c
, d
): (i32, i64, i16);
138 fn underscores_and_numbers() {
139 let _1
= 1; //~ERROR Consider a more descriptive name
140 let ____1
= 1; //~ERROR Consider a more descriptive name
141 let __1___2
= 12; //~ERROR Consider a more descriptive name