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