about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui-toml/disallowed_names_replace/disallowed_names.rs
blob: dd79795d76a2a2afcf140e62edaae3f03509c3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
#![warn(clippy::disallowed_names)]

fn main() {
    // `foo` is part of the default configuration
    let foo = "bar";
    // `ducks` was unrightfully disallowed
    let ducks = ["quack", "quack"];
    //~^ disallowed_names
    // `fox` is okay
    let fox = ["what", "does", "the", "fox", "say", "?"];
}