summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/lint-dead-code-3.stderr
blob: 5c68cf0e18b67011e4821b5c455cb561aa8a3651 (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
error: struct `Foo` is never constructed
  --> $DIR/lint-dead-code-3.rs:14:8
   |
LL | struct Foo;
   |        ^^^
   |
note: the lint level is defined here
  --> $DIR/lint-dead-code-3.rs:4:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: method `foo` is never used
  --> $DIR/lint-dead-code-3.rs:16:8
   |
LL | impl Foo {
   | -------- method in this implementation
LL |     fn foo(&self) {
   |        ^^^

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

error: enum `c_void` is never used
  --> $DIR/lint-dead-code-3.rs:60:6
   |
LL | enum c_void {}
   |      ^^^^^^

error: function `blah` is never used
  --> $DIR/lint-dead-code-3.rs:77:8
   |
LL |     fn blah() {}
   |        ^^^^

error: function `blah` is never used
  --> $DIR/lint-dead-code-3.rs:81:12
   |
LL |         fn blah() {}
   |            ^^^^

error: function `free` is never used
  --> $DIR/lint-dead-code-3.rs:62:8
   |
LL |     fn free(p: *const c_void);
   |        ^^^^

error: aborting due to 7 previous errors