mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
72 lines
1.5 KiB
Plaintext
72 lines
1.5 KiB
Plaintext
error: static `priv_static` is never used
|
|
--> $DIR/lint-dead-code-1.rs:20:8
|
|
|
|
|
LL | static priv_static: isize = 0;
|
|
| ^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-dead-code-1.rs:5:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: constant `priv_const` is never used
|
|
--> $DIR/lint-dead-code-1.rs:27:7
|
|
|
|
|
LL | const priv_const: isize = 0;
|
|
| ^^^^^^^^^^
|
|
|
|
error: struct `PrivStruct` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:35:8
|
|
|
|
|
LL | struct PrivStruct;
|
|
| ^^^^^^^^^^
|
|
|
|
error: enum `priv_enum` is never used
|
|
--> $DIR/lint-dead-code-1.rs:64:6
|
|
|
|
|
LL | enum priv_enum { foo2, bar2 }
|
|
| ^^^^^^^^^
|
|
|
|
error: variant `bar3` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:67:5
|
|
|
|
|
LL | enum used_enum {
|
|
| --------- variant in this enum
|
|
LL | foo3,
|
|
LL | bar3
|
|
| ^^^^
|
|
|
|
error: function `priv_fn` is never used
|
|
--> $DIR/lint-dead-code-1.rs:88:4
|
|
|
|
|
LL | fn priv_fn() {
|
|
| ^^^^^^^
|
|
|
|
error: function `foo` is never used
|
|
--> $DIR/lint-dead-code-1.rs:93:4
|
|
|
|
|
LL | fn foo() {
|
|
| ^^^
|
|
|
|
error: function `bar` is never used
|
|
--> $DIR/lint-dead-code-1.rs:98:4
|
|
|
|
|
LL | fn bar() {
|
|
| ^^^
|
|
|
|
error: function `baz` is never used
|
|
--> $DIR/lint-dead-code-1.rs:102:4
|
|
|
|
|
LL | fn baz() -> impl Copy {
|
|
| ^^^
|
|
|
|
error: struct `Bar` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:12:16
|
|
|
|
|
LL | pub struct Bar;
|
|
| ^^^
|
|
|
|
error: aborting due to 10 previous errors
|
|
|