fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: adding items after statements is confusing, since items exist from the start of the scope 2 --> $DIR/items_after_statement.rs:13:5 3 | 4LL | / fn foo() { 5LL | | 6LL | | 7LL | | println!("foo"); 8LL | | } 9 | |_____^ 10 | 11 = note: `-D clippy::items-after-statements` implied by `-D warnings` 12 = help: to override `-D warnings` add `#[allow(clippy::items_after_statements)]` 13 14error: adding items after statements is confusing, since items exist from the start of the scope 15 --> $DIR/items_after_statement.rs:22:5 16 | 17LL | / fn foo() { 18LL | | 19LL | | println!("foo"); 20LL | | } 21 | |_____^ 22 23error: adding items after statements is confusing, since items exist from the start of the scope 24 --> $DIR/items_after_statement.rs:36:13 25 | 26LL | / fn say_something() { 27LL | | println!("something"); 28LL | | } 29 | |_____________^ 30... 31LL | b!(); 32 | ---- in this macro invocation 33 | 34 = note: this error originates in the macro `b` (in Nightly builds, run with -Z macro-backtrace for more info) 35 36error: aborting due to 3 previous errors 37