mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 04:23:22 +00:00
11 lines
291 B
Rust
11 lines
291 B
Rust
|
#![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.
|
|||
|
}
|