]> git.lizzy.rs Git - rust.git/blob - tests/ui/cognitive_complexity_attr_used.stderr
Merge remote-tracking branch 'origin/rust-1.31.0' into HEAD
[rust.git] / tests / ui / cognitive_complexity_attr_used.stderr
1 error: the function has a cognitive complexity of 3
2   --> $DIR/cognitive_complexity_attr_used.rs:9: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::cognitive-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