]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/disallowed_names_replace/disallowed_names.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 }