mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
33 lines
809 B
Plaintext
33 lines
809 B
Plaintext
error: struct `UnusedStruct` is never constructed
|
|
--> $DIR/lint-dead-code-6.rs:3:8
|
|
|
|
|
LL | struct UnusedStruct;
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-dead-code-6.rs:1:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: associated function `unused_impl_fn_1` is never used
|
|
--> $DIR/lint-dead-code-6.rs:5:8
|
|
|
|
|
LL | fn unused_impl_fn_1() {
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: associated function `unused_impl_fn_2` is never used
|
|
--> $DIR/lint-dead-code-6.rs:9:8
|
|
|
|
|
LL | fn unused_impl_fn_2(var: i32) {
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: associated function `unused_impl_fn_3` is never used
|
|
--> $DIR/lint-dead-code-6.rs:13:8
|
|
|
|
|
LL | fn unused_impl_fn_3(
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|