]> git.lizzy.rs Git - rust.git/blob - tests/ui/cyclomatic_complexity_attr_used.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / cyclomatic_complexity_attr_used.rs
1 #![feature(tool_lints)]
2
3 #![warn(clippy::cyclomatic_complexity)]
4 #![warn(unused)]
5
6 fn main() {
7     kaboom();
8 }
9
10 #[clippy::cyclomatic_complexity = "0"]
11 fn kaboom() {
12     if 42 == 43 {
13         panic!();
14     } else if "cake" == "lie" {
15         println!("what?");
16     }
17 }