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