]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables-2.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / lint / rfc-2457-non-ascii-idents / lint-mixed-script-confusables-2.rs
1 // check-pass
2 #![deny(mixed_script_confusables)]
3
4 struct ΑctuallyNotLatin;
5
6 fn main() {
7     let λ = 42; // this usage of Greek confirms that Greek is used intentionally.
8 }
9
10 mod роре {
11     const エ: &'static str = "アイウ";
12
13     // this usage of Katakana confirms that Katakana is used intentionally.
14     fn ニャン() {
15         let д: usize = 100; // this usage of Cyrillic confirms that Cyrillic is used intentionally.
16
17         println!("meow!");
18     }
19 }