]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/item_after_statement.stderr
iterate List by value
[rust.git] / tests / ui / item_after_statement.stderr
index ec1296caf83efbca8fe8a4ce6ea3b1c3cad3dfe9..f8f010b5e5c1fb4c4cdbed207a6f2312f157cb42 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
    |
-12 |     fn foo() { println!("foo"); }
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | /     fn foo() {
+LL | |         println!("foo");
+LL | |     }
+   | |_____^
    |
-   = note: `-D items-after-statements` implied by `-D warnings`
+   = 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:19:5
    |
-17 |     fn foo() { println!("foo"); }
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | /     fn foo() {
+LL | |         println!("foo");
+LL | |     }
+   | |_____^
 
 error: aborting due to 2 previous errors