rust/tests/ui/lint/dead-code/in-closure.stderr
2023-02-22 15:27:19 +00:00

21 lines
394 B
Plaintext

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