3 #![forbid(non_camel_case_types)]
4 #![feature(non_ascii_idents)]
6 // Some scripts (e.g., hiragana) don't have a concept of
9 // 1. non_camel_case_types
11 // Can start with non-lowercase letter
16 //~^ ERROR type `χa` should have an upper camel case name
18 // If there's already leading or trailing underscores, they get trimmed before checking.
24 //~^ ERROR type `__χa` should have an upper camel case name
26 // Besides this, we cannot have two continuous underscores in the middle.
29 //~^ ERROR type `对__否` should have an upper camel case name
32 //~^ ERROR type `ヒ__χ` should have an upper camel case name
34 // also cannot have lowercase letter next to a underscore.
35 // so this triggers the lint:
38 //~^ ERROR type `Hello_你好` should have an upper camel case name
41 //~^ ERROR type `Hello_World` should have an upper camel case name
44 //~^ ERROR type `你_ӟ` should have an upper camel case name