1 #![deny(non_snake_case)]
8 //~^ ERROR method `Foo_Method` should have a snake case name
10 // Don't allow two underscores in a row
11 fn foo__method(&self) {}
12 //~^ ERROR method `foo__method` should have a snake case name
14 pub fn xyZ(&mut self) {}
15 //~^ ERROR method `xyZ` should have a snake case name
18 //~^ ERROR method `render_HTML` should have a snake case name
23 //~^ ERROR trait method `ABC` should have a snake case name
26 //~^ ERROR trait method `a_b_C` should have a snake case name
28 fn something__else(&mut self);
29 //~^ ERROR trait method `something__else` should have a snake case name
33 // These errors should be caught at the trait definition not the impl
35 fn something__else(&mut self) {}
39 //~^ ERROR function `Cookie` should have a snake case name
42 //~^ ERROR function `bi_S_Cuit` should have a snake case name