summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/lint-dead-code-2.stderr
blob: 85af553c9867f6ff4e884659ac75ca92572a195d (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
error: function `dead_fn` is never used
  --> $DIR/lint-dead-code-2.rs:22:4
   |
LL | fn dead_fn() {}
   |    ^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/lint-dead-code-2.rs:2:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: function `dead_fn2` is never used
  --> $DIR/lint-dead-code-2.rs:25:4
   |
LL | fn dead_fn2() {}
   |    ^^^^^^^^

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

error: aborting due to 3 previous errors