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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
423 B
Rust
Raw Normal View History

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