summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/disallowed_script_idents.rs
blob: 08fd1d9669ee90938ce80ba3750a9e5a32bd195f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![deny(clippy::disallowed_script_idents)]
#![allow(dead_code)]

fn main() {
    // OK, latin is allowed.
    let counter = 10;
    // OK, it's still latin.
    let zähler = 10;

    // Cyrillic is not allowed by default.
    let счётчик = 10;
    //~^ disallowed_script_idents

    // Same for japanese.
    let カウンタ = 10;
    //~^ disallowed_script_idents
}