summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/in-closure.stderr
blob: deb276be7027c32c6b78fa173141fd075cc7a3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: function `a` is never used
  --> $DIR/in-closure.rs:7:12
   |
LL |         fn a() {}
   |            ^
   |
note: the lint level is defined here
  --> $DIR/in-closure.rs:3:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: constant `A` is never used
  --> $DIR/in-closure.rs:13:11
   |
LL |     const A: usize = 1;
   |           ^

error: aborting due to 2 previous errors