]> git.lizzy.rs Git - rust.git/blob - tests/ui/cyclomatic_complexity_attr_used.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[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:18:1
3    |
4 LL | / fn kaboom() {
5 LL | |     if 42 == 43 {
6 LL | |         panic!();
7 LL | |     } else if "cake" == "lie" {
8 LL | |         println!("what?");
9 LL | |     }
10 LL | | }
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