summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/lint-dead-code-1.stderr
blob: eb728b5b930551152727b285d3b51900db807640 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
error: static `priv_static` is never used
  --> $DIR/lint-dead-code-1.rs:20:8
   |
LL | static priv_static: isize = 0;
   |        ^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/lint-dead-code-1.rs:5:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: constant `priv_const` is never used
  --> $DIR/lint-dead-code-1.rs:27:7
   |
LL | const priv_const: isize = 0;
   |       ^^^^^^^^^^

error: struct `PrivStruct` is never constructed
  --> $DIR/lint-dead-code-1.rs:35:8
   |
LL | struct PrivStruct;
   |        ^^^^^^^^^^

error: enum `priv_enum` is never used
  --> $DIR/lint-dead-code-1.rs:64:6
   |
LL | enum priv_enum { foo2, bar2 }
   |      ^^^^^^^^^

error: variant `bar3` is never constructed
  --> $DIR/lint-dead-code-1.rs:67:5
   |
LL | enum used_enum {
   |      --------- variant in this enum
LL |     foo3,
LL |     bar3
   |     ^^^^

error: function `priv_fn` is never used
  --> $DIR/lint-dead-code-1.rs:88:4
   |
LL | fn priv_fn() {
   |    ^^^^^^^

error: function `foo` is never used
  --> $DIR/lint-dead-code-1.rs:93:4
   |
LL | fn foo() {
   |    ^^^

error: function `bar` is never used
  --> $DIR/lint-dead-code-1.rs:98:4
   |
LL | fn bar() {
   |    ^^^

error: function `baz` is never used
  --> $DIR/lint-dead-code-1.rs:102:4
   |
LL | fn baz() -> impl Copy {
   |    ^^^

error: struct `Bar` is never constructed
  --> $DIR/lint-dead-code-1.rs:12:16
   |
LL |     pub struct Bar;
   |                ^^^

error: aborting due to 10 previous errors