1 #![deny(non_snake_case)]
2 #![allow(unused_variables)]
7 lowerCamelCaseName
: bool
,
8 //~^ ERROR structure field `lowerCamelCaseName` should have a snake case name
11 snake_case_name
: bool
,
16 let b
= Foo
::Bad { lowerCamelCaseName: true }
;
19 Foo
::Bad { lowerCamelCaseName }
=> {}
20 Foo
::Good { snake_case_name: lowerCamelCaseBinding }
=> { }
21 //~^ ERROR variable `lowerCamelCaseBinding` should have a snake case name
24 if let Foo
::Good { snake_case_name: anotherLowerCamelCaseBinding }
= b { }
25 //~^ ERROR variable `anotherLowerCamelCaseBinding` should have a snake case name
27 if let Foo
::Bad { lowerCamelCaseName: yetAnotherLowerCamelCaseBinding }
= b { }
28 //~^ ERROR variable `yetAnotherLowerCamelCaseBinding` should have a snake case name