]> 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 d06066972fbcc1b5409f6f9900f2f65d5a9f863a..f5ff53dda603b388329940d2ad6d70a2003e9e0f 100644 (file)
@@ -1,14 +1,8 @@
 error: the function has a cognitive complexity of (3/0)
-  --> $DIR/cognitive_complexity_attr_used.rs:9:1
+  --> $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