]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
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: adding items after statements is confusing, since items exist from the start of the scope | |
20 | --> $DIR/item_after_statement.rs:32:13 | |
21 | | | |
22 | LL | / fn say_something() { | |
23 | LL | | println!("something"); | |
24 | LL | | } | |
25 | | |_____________^ | |
26 | ... | |
27 | LL | b!(); | |
28 | | ----- in this macro invocation | |
29 | | | |
30 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
31 | ||
32 | error: aborting due to 3 previous errors | |
33 |