]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-nonstandard-style-unicode-3.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[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() {}