mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
84 lines
1.8 KiB
Plaintext
84 lines
1.8 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: struct `StructUsedAsField` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:49:8
|
|
|
|
|
LL | struct StructUsedAsField;
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: struct `PubStruct2` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:52:12
|
|
|
|
|
LL | pub struct PubStruct2 {
|
|
| ^^^^^^^^^^
|
|
|
|
error: enum `priv_enum` is never used
|
|
--> $DIR/lint-dead-code-1.rs:63:6
|
|
|
|
|
LL | enum priv_enum { foo2, bar2 }
|
|
| ^^^^^^^^^
|
|
|
|
error: variant `bar3` is never constructed
|
|
--> $DIR/lint-dead-code-1.rs:66: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:87:4
|
|
|
|
|
LL | fn priv_fn() {
|
|
| ^^^^^^^
|
|
|
|
error: function `foo` is never used
|
|
--> $DIR/lint-dead-code-1.rs:92:4
|
|
|
|
|
LL | fn foo() {
|
|
| ^^^
|
|
|
|
error: function `bar` is never used
|
|
--> $DIR/lint-dead-code-1.rs:97:4
|
|
|
|
|
LL | fn bar() {
|
|
| ^^^
|
|
|
|
error: function `baz` is never used
|
|
--> $DIR/lint-dead-code-1.rs:101: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 12 previous errors
|
|
|