mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
21 lines
451 B
Plaintext
21 lines
451 B
Plaintext
error: struct `Foo` is never constructed
|
|
--> $DIR/lint-unused-adt-appeared-in-pattern.rs:3:8
|
|
|
|
|
LL | struct Foo(u8);
|
|
| ^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-unused-adt-appeared-in-pattern.rs:1:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: enum `Bar` is never used
|
|
--> $DIR/lint-unused-adt-appeared-in-pattern.rs:5:6
|
|
|
|
|
LL | enum Bar {
|
|
| ^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|