]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-nonstandard-style-unicode-2.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / lint / lint-nonstandard-style-unicode-2.rs
1 #![allow(dead_code)]
2
3 #![forbid(non_snake_case)]
4
5 // Some scripts (e.g., hiragana) don't have a concept of
6 // upper/lowercase
7
8 // 2. non_snake_case
9
10 // Can only use non-uppercase letters.
11 // So this works:
12
13 fn 编程() {}
14
15 // but this doesn't:
16
17 fn Ц() {}
18 //~^ ERROR function `Ц` should have a snake case name
19
20 // besides this, you cannot use continuous underscores in the middle
21
22 fn 分__隔() {}
23 //~^ ERROR function `分__隔` should have a snake case name
24
25 // but you can use them both at the beginning and at the end.
26
27 fn _______不_连_续_的_存_在_______() {}
28
29 fn main() {}