fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: unreachable block in `if` expression 2 --> $DIR/expr_if.rs:7:17 3 | 4LL | if {return} { 5 | _________------__^ 6 | | | 7 | | any code following this expression is unreachable 8LL | | println!("Hello, world!"); 9LL | | } 10 | |_____^ unreachable block in `if` expression 11 | 12note: lint level defined here 13 --> $DIR/expr_if.rs:4:9 14 | 15LL | #![deny(unreachable_code)] 16 | ^^^^^^^^^^^^^^^^ 17 18error: unreachable statement 19 --> $DIR/expr_if.rs:27:5 20 | 21LL | return; 22 | ------ any code following this expression is unreachable 23... 24LL | println!("But I am."); 25 | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement 26 | 27 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) 28 29error: aborting due to 2 previous errors 30