summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/issue-85071.stderr
blob: 49555fdaa3595553297ce2b37dd0f234c05837bd (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: the lint level is defined here
  --> $DIR/issue-85071.rs:9:26
   |
LL | #![warn(unused_variables,unreachable_code)]
   |                          ^^^^^^^^^^^^^^^^
note: this expression has type `Foo`, which is uninhabited
  --> $DIR/issue-85071.rs:15:13
   |
LL |     let x = f();
   |             ^^^

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