]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui-toml/blacklisted_names_replace/blacklisted_names.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui-toml / blacklisted_names_replace / blacklisted_names.rs
1 #[warn(clippy::blacklisted_name)]
2
3 fn main() {
4 // `foo` is part of the default configuration
5 let foo = "bar";
6 // `ducks` was unrightfully blacklisted
7 let ducks = ["quack", "quack"];
8 // `fox` is okay
9 let fox = ["what", "does", "the", "fox", "say", "?"];
10 }