rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs
2023-01-11 09:32:08 +00:00

15 lines
423 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#![deny(mixed_script_confusables)]
struct ΑctuallyNotLatin;
//~^ ERROR the usage of Script Group `Greek` in this crate consists solely of
fn main() {
let v = ΑctuallyNotLatin;
}
mod роре {
//~^ ERROR the usage of Script Group `Cyrillic` in this crate consists solely of
const : &'static str = "アイウ";
//~^ ERROR the usage of Script Group `Japanese, Katakana` in this crate consists solely of
}