]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/cognitive_complexity_attr_used.stderr
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / cognitive_complexity_attr_used.stderr
index 2cf41506f566c7688e750ac9549f3f9d1aafc6d5..f5ff53dda603b388329940d2ad6d70a2003e9e0f 100644 (file)
@@ -1,14 +1,8 @@
-error: the function has a cognitive complexity of 3
-  --> $DIR/cognitive_complexity_attr_used.rs:9:1
+error: the function has a cognitive complexity of (3/0)
+  --> $DIR/cognitive_complexity_attr_used.rs:9:4
    |
-LL | / fn kaboom() {
-LL | |     if 42 == 43 {
-LL | |         panic!();
-LL | |     } else if "cake" == "lie" {
-LL | |         println!("what?");
-LL | |     }
-LL | | }
-   | |_^
+LL | fn kaboom() {
+   |    ^^^^^^
    |
    = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
    = help: you could split it up into multiple smaller functions