mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
12 lines
193 B
Rust
12 lines
193 B
Rust
fn main() {}
|
|
|
|
#[warn(clippy::cognitive_complexity)]
|
|
fn cognitive_complexity() {
|
|
let x = vec![1, 2, 3];
|
|
for i in x {
|
|
if i == 1 {
|
|
println!("{}", i);
|
|
}
|
|
}
|
|
}
|