summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/issue-85071.stderr
blob: 721fb8148d96b5c739a2c3ea8b829a67286f9393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
warning: unreachable expression
  --> $DIR/issue-85071.rs:17:13
   |
LL |     let x = f();
   |             --- any code following this expression is unreachable
LL |
LL |     let _ = x;
   |             ^ unreachable expression
   |
note: this expression has type `Foo`, which is uninhabited
  --> $DIR/issue-85071.rs:15:13
   |
LL |     let x = f();
   |             ^^^
note: the lint level is defined here
  --> $DIR/issue-85071.rs:9:26
   |
LL | #![warn(unused_variables,unreachable_code)]
   |                          ^^^^^^^^^^^^^^^^

warning: unused variable: `x`
  --> $DIR/issue-85071.rs:15:9
   |
LL |     let x = f();
   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
   |
note: the lint level is defined here
  --> $DIR/issue-85071.rs:9:9
   |
LL | #![warn(unused_variables,unreachable_code)]
   |         ^^^^^^^^^^^^^^^^

warning: 2 warnings emitted