1 #![forbid(non_camel_case_types)]
5 //~^ ERROR type `ONE_TWO_THREE` should have an upper camel case name
7 struct foo { //~ ERROR type `foo` should have an upper camel case name
11 enum foo2 { //~ ERROR type `foo2` should have an upper camel case name
15 struct foo3 { //~ ERROR type `foo3` should have an upper camel case name
19 type foo4 = isize; //~ ERROR type `foo4` should have an upper camel case name
22 bar //~ ERROR variant `bar` should have an upper camel case name
25 trait foo6 { //~ ERROR trait `foo6` should have an upper camel case name
26 type foo7; //~ ERROR associated type `foo7` should have an upper camel case name
30 fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have an upper camel case name