fork/rust

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

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

master
897 B34 linesraw
1warning: unreachable expression
2  --> $DIR/issue-85071.rs:17:13
3   |
4LL |     let x = f();
5   |             --- any code following this expression is unreachable
6LL |
7LL |     let _ = x;
8   |             ^ unreachable expression
9   |
10note: this expression has type `Foo`, which is uninhabited
11  --> $DIR/issue-85071.rs:15:13
12   |
13LL |     let x = f();
14   |             ^^^
15note: the lint level is defined here
16  --> $DIR/issue-85071.rs:9:26
17   |
18LL | #![warn(unused_variables,unreachable_code)]
19   |                          ^^^^^^^^^^^^^^^^
20
21warning: unused variable: `x`
22  --> $DIR/issue-85071.rs:15:9
23   |
24LL |     let x = f();
25   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
26   |
27note: the lint level is defined here
28  --> $DIR/issue-85071.rs:9:9
29   |
30LL | #![warn(unused_variables,unreachable_code)]
31   |         ^^^^^^^^^^^^^^^^
32
33warning: 2 warnings emitted
34