]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/item_after_statement.stderr
Auto merge of #78458 - Dylan-DPC:rollup-tan044s, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / item_after_statement.stderr
1 error: adding items after statements is confusing, since items exist from the start of the scope
2   --> $DIR/item_after_statement.rs:12:5
3    |
4 LL | /     fn foo() {
5 LL | |         println!("foo");
6 LL | |     }
7    | |_____^
8    |
9    = note: `-D clippy::items-after-statements` implied by `-D warnings`
10
11 error: adding items after statements is confusing, since items exist from the start of the scope
12   --> $DIR/item_after_statement.rs:19:5
13    |
14 LL | /     fn foo() {
15 LL | |         println!("foo");
16 LL | |     }
17    | |_____^
18
19 error: aborting due to 2 previous errors
20