rust-clippy/tests/ui/disallowed_script_idents.rs

10 lines
291 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(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.
}