3 #![forbid(non_camel_case_types)]
5 // Some scripts (e.g., hiragana) don't have a concept of
8 // 1. non_camel_case_types
10 // Can start with non-lowercase letter
15 //~^ ERROR type `χa` should have an upper camel case name
17 // If there's already leading or trailing underscores, they get trimmed before checking.
23 //~^ ERROR type `__χa` should have an upper camel case name
25 // Besides this, we cannot have two continuous underscores in the middle.
28 //~^ ERROR type `对__否` should have an upper camel case name
31 //~^ ERROR type `ヒ__χ` should have an upper camel case name
33 // also cannot have lowercase letter next to a underscore.
34 // so this triggers the lint:
37 //~^ ERROR type `Hello_你好` should have an upper camel case name
40 //~^ ERROR type `Hello_World` should have an upper camel case name
43 //~^ ERROR type `你_ӟ` should have an upper camel case name