]> git.lizzy.rs Git - rust.git/blob - tests/ui/single_element_loop.fixed
Auto merge of #7029 - ABouttefeux:master, r=Manishearth
[rust.git] / tests / ui / single_element_loop.fixed
1 // run-rustfix
2 // Tests from for_loop.rs that don't have suggestions
3
4 #[warn(clippy::single_element_loop)]
5 fn main() {
6     let item1 = 2;
7     {
8         let item = &item1;
9         println!("{}", item);
10     }
11 }