]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/disallowed_names_replace/disallowed_names.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / tools / clippy / tests / ui-toml / disallowed_names_replace / disallowed_names.rs
1 #[warn(clippy::disallowed_names)]
2
3 fn main() {
4     // `foo` is part of the default configuration
5     let foo = "bar";
6     // `ducks` was unrightfully disallowed
7     let ducks = ["quack", "quack"];
8     // `fox` is okay
9     let fox = ["what", "does", "the", "fox", "say", "?"];
10 }