summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/disallowed_names_replace/disallowed_names.rs
blob: a2e2b46c42693a35031610ad6bbc2363b796b628 (plain)
1
2
3
4
5
6
7
8
9
10
#[warn(clippy::disallowed_names)]

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