2021-06-30 19:06:33 +03:00
|
|
|
|
#![deny(clippy::disallowed_script_idents)]
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2023-07-28 20:40:44 +02:00
|
|
|
|
// OK, latin is allowed.
|
|
|
|
|
|
let counter = 10;
|
|
|
|
|
|
// OK, it's still latin.
|
|
|
|
|
|
let zähler = 10;
|
2021-06-30 19:06:33 +03:00
|
|
|
|
|
2023-07-28 20:40:44 +02:00
|
|
|
|
// Cyrillic is not allowed by default.
|
|
|
|
|
|
let счётчик = 10;
|
2025-02-11 17:57:08 +01:00
|
|
|
|
//~^ disallowed_script_idents
|
|
|
|
|
|
|
2023-07-28 20:40:44 +02:00
|
|
|
|
// Same for japanese.
|
|
|
|
|
|
let カウンタ = 10;
|
2025-02-11 17:57:08 +01:00
|
|
|
|
//~^ disallowed_script_idents
|
2021-06-30 19:06:33 +03:00
|
|
|
|
}
|