rust/tests/ui/cyclomatic_complexity_attr_used.rs
2019-01-08 21:46:39 +01:00

16 lines
243 B
Rust

#![warn(clippy::cyclomatic_complexity)]
#![warn(unused)]
fn main() {
kaboom();
}
#[clippy::cyclomatic_complexity = "0"]
fn kaboom() {
if 42 == 43 {
panic!();
} else if "cake" == "lie" {
println!("what?");
}
}