68 lines
1.4 KiB
Text
68 lines
1.4 KiB
Text
error: struct is never constructed: `Bar`
|
|
--> $DIR/lint-dead-code-1.rs:12:16
|
|
|
|
|
LL | pub struct Bar;
|
|
| ^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-dead-code-1.rs:5:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: static is never used: `priv_static`
|
|
--> $DIR/lint-dead-code-1.rs:20:1
|
|
|
|
|
LL | static priv_static: isize = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: constant is never used: `priv_const`
|
|
--> $DIR/lint-dead-code-1.rs:27:1
|
|
|
|
|
LL | const priv_const: isize = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: struct is never constructed: `PrivStruct`
|
|
--> $DIR/lint-dead-code-1.rs:35:8
|
|
|
|
|
LL | struct PrivStruct;
|
|
| ^^^^^^^^^^
|
|
|
|
error: enum is never used: `priv_enum`
|
|
--> $DIR/lint-dead-code-1.rs:64:6
|
|
|
|
|
LL | enum priv_enum { foo2, bar2 }
|
|
| ^^^^^^^^^
|
|
|
|
error: variant is never constructed: `bar3`
|
|
--> $DIR/lint-dead-code-1.rs:67:5
|
|
|
|
|
LL | bar3
|
|
| ^^^^
|
|
|
|
error: function is never used: `priv_fn`
|
|
--> $DIR/lint-dead-code-1.rs:88:4
|
|
|
|
|
LL | fn priv_fn() {
|
|
| ^^^^^^^
|
|
|
|
error: function is never used: `foo`
|
|
--> $DIR/lint-dead-code-1.rs:93:4
|
|
|
|
|
LL | fn foo() {
|
|
| ^^^
|
|
|
|
error: function is never used: `bar`
|
|
--> $DIR/lint-dead-code-1.rs:98:4
|
|
|
|
|
LL | fn bar() {
|
|
| ^^^
|
|
|
|
error: function is never used: `baz`
|
|
--> $DIR/lint-dead-code-1.rs:102:4
|
|
|
|
|
LL | fn baz() -> impl Copy {
|
|
| ^^^
|
|
|
|
error: aborting due to 10 previous errors
|
|
|