| 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:36:8 | |
| | | |
| LL | struct PrivStruct; | |
| | ^^^^^^^^^^ | |
| error: enum `priv_enum` is never used | |
| --> $DIR/lint-dead-code-1.rs:65:6 | |
| | | |
| LL | enum priv_enum { foo2, bar2 } | |
| | ^^^^^^^^^ | |
| error: variant `bar3` is never constructed | |
| --> $DIR/lint-dead-code-1.rs:68: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:90:4 | |
| | | |
| LL | fn priv_fn() { | |
| | ^^^^^^^ | |
| error: function `foo` is never used | |
| --> $DIR/lint-dead-code-1.rs:95:4 | |
| | | |
| LL | fn foo() { | |
| | ^^^ | |
| error: function `bar` is never used | |
| --> $DIR/lint-dead-code-1.rs:100:4 | |
| | | |
| LL | fn bar() { | |
| | ^^^ | |
| error: function `baz` is never used | |
| --> $DIR/lint-dead-code-1.rs:104: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 | |