]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
1 | error: the function has a cyclomatic complexity of 3 |
2 | --> $DIR/cyclomatic_complexity_attr_used.rs:11:1 | |
3 | | | |
4 | 11 | / fn kaboom() { | |
5 | 12 | | if 42 == 43 { | |
6 | 13 | | panic!(); | |
7 | 14 | | } else if "cake" == "lie" { | |
8 | 15 | | println!("what?"); | |
9 | 16 | | } | |
10 | 17 | | } | |
11 | | |_^ | |
12 | | | |
13 | = note: `-D cyclomatic-complexity` implied by `-D warnings` | |
14 | = help: you could split it up into multiple smaller functions | |
15 | ||
2c00a5a8 XL |
16 | error: aborting due to previous error |
17 |