]> git.lizzy.rs Git - rust.git/blob - tests/ui/cyclomatic_complexity_attr_used.stderr
Merge pull request #3285 from devonhollowood/pedantic-dogfood-items-after-statements
[rust.git] / tests / ui / cyclomatic_complexity_attr_used.stderr
1 error: the function has a cyclomatic complexity of 3
2   --> $DIR/cyclomatic_complexity_attr_used.rs:21:1
3    |
4 21 | / fn kaboom() {
5 22 | |     if 42 == 43 {
6 23 | |         panic!();
7 24 | |     } else if "cake" == "lie" {
8 25 | |         println!("what?");
9 26 | |     }
10 27 | | }
11    | |_^
12    |
13    = note: `-D clippy::cyclomatic-complexity` implied by `-D warnings`
14    = help: you could split it up into multiple smaller functions
15
16 error: aborting due to previous error
17