]> git.lizzy.rs Git - rust.git/blob - tests/ui/cyclomatic_complexity_attr_used.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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: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
16 error: aborting due to previous error
17