]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/item_after_statement.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / item_after_statement.stderr
index 6d20899b5ec0651a5960bbf16d5dbfa8392dfa94..3024431244cc50aeb6f2f102fc83fb95b2c7b678 100644 (file)
@@ -1,16 +1,20 @@
 error: adding items after statements is confusing, since items exist from the start of the scope
-  --> $DIR/item_after_statement.rs:12:5
+  --> $DIR/item_after_statement.rs:21:5
    |
-12 |     fn foo() { println!("foo"); }
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | /     fn foo() {
+LL | |         println!("foo");
+LL | |     }
+   | |_____^
    |
    = note: `-D clippy::items-after-statements` implied by `-D warnings`
 
 error: adding items after statements is confusing, since items exist from the start of the scope
-  --> $DIR/item_after_statement.rs:17:5
+  --> $DIR/item_after_statement.rs:28:5
    |
-17 |     fn foo() { println!("foo"); }
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | /     fn foo() {
+LL | |         println!("foo");
+LL | |     }
+   | |_____^
 
 error: aborting due to 2 previous errors