rust-clippy/tests/ui/disallowed_script_idents.rs

11 lines
291 B
Rust
Raw Normal View History

#![deny(clippy::disallowed_script_idents)]
#![allow(dead_code)]
fn main() {
let counter = 10; // OK, latin is allowed.
let zähler = 10; // OK, it's still latin.
let счётчик = 10; // Cyrillic is not allowed by default.
let = 10; // Same for japanese.
}