fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
879 B30 linesraw
1error: unreachable block in `if` or `while` 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` or `while` expression
11   |
12note: the lint level is 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 the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error: aborting due to 2 previous errors
30