summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/conf_deprecated_key/conf_deprecated_key.rs
blob: 7f1c512d7c97bc655a785b38ff4056fd490effb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(clippy::uninlined_format_args)]

fn main() {}

#[warn(clippy::cognitive_complexity)]
fn cognitive_complexity() {
    let x = vec![1, 2, 3];
    for i in x {
        if i == 1 {
            println!("{}", i);
        }
    }
}