]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-nonstandard-style-unicode-3.rs
Special sync of 'e89801553ddbaccdeb2eac4db08900edb51ac7ff'
[rust.git] / src / test / ui / lint / lint-nonstandard-style-unicode-3.rs
1 #![allow(dead_code)]
2
3 #![forbid(non_upper_case_globals)]
4 #![feature(non_ascii_idents)]
5
6 // Some scripts (e.g., hiragana) don't have a concept of
7 // upper/lowercase
8
9 // 3. non_upper_case_globals
10
11 // Can only use non-lowercase letters.
12 // So this works:
13
14 static ラ: usize = 0;
15
16 // but this doesn't:
17
18 static τεχ: f32 = 3.14159265;
19 //~^ ERROR static variable `τεχ` should have an upper case name
20
21 // This has no limit at all on underscore usages.
22
23 static __密__封__线__内__禁__止__答__题__: bool = true;
24
25 fn main() {}