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