mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
21 lines
394 B
Plaintext
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
|
|
|