]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/special-upper-lower-cases.rs
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / lint / special-upper-lower-cases.rs
1 // (#77273) These characters are in the general categories of
2 // "Uppercase/Lowercase Letter".
3 // The diagnostics don't provide meaningful suggestions for them
4 // as we cannot convert them properly.
5
6 // check-pass
7
8 #![allow(uncommon_codepoints, unused)]
9
10 struct 𝕟𝕠𝕥𝕒𝕔𝕒𝕞𝕖𝕝;
11 //~^ WARN: type `𝕟𝕠𝕥𝕒𝕔𝕒𝕞𝕖𝕝` should have an upper camel case name
12
13 // FIXME: How we should handle this?
14 struct 𝕟𝕠𝕥_𝕒_𝕔𝕒𝕞𝕖𝕝;
15 //~^ WARN: type `𝕟𝕠𝕥_𝕒_𝕔𝕒𝕞𝕖𝕝` should have an upper camel case name
16
17 static 𝗻𝗼𝗻𝘂𝗽𝗽𝗲𝗿𝗰𝗮𝘀𝗲: i32 = 1;
18 //~^ WARN: static variable `𝗻𝗼𝗻𝘂𝗽𝗽𝗲𝗿𝗰𝗮𝘀𝗲` should have an upper case name
19
20 fn main() {
21     let 𝓢𝓝𝓐𝓐𝓐𝓐𝓚𝓔𝓢 = 1;
22     //~^ WARN: variable `𝓢𝓝𝓐𝓐𝓐𝓐𝓚𝓔𝓢` should have a snake case name
23 }