mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
24 lines
473 B
Plaintext
24 lines
473 B
Plaintext
error: struct `T` is never constructed
|
|
--> $DIR/unused-struct-derive-default.rs:4:8
|
|
|
|
|
LL | struct T;
|
|
| ^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-struct-derive-default.rs:1:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: variant `B` is never constructed
|
|
--> $DIR/unused-struct-derive-default.rs:13:5
|
|
|
|
|
LL | enum E {
|
|
| - variant in this enum
|
|
...
|
|
LL | B,
|
|
| ^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|