rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusabl...

15 lines
423 B
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#![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
}