| error: struct `PrivateType` is never constructed | |
| --> $DIR/allow-trait-or-impl.rs:7:12 | |
| | | |
| LL | struct PrivateType; | |
| | ^^^^^^^^^^^ | |
| | | |
| note: the lint level is defined here | |
| --> $DIR/allow-trait-or-impl.rs:1:9 | |
| | | |
| LL | #![deny(dead_code)] | |
| | ^^^^^^^^^ | |
| error: struct `AnotherPrivateType` is never constructed | |
| --> $DIR/allow-trait-or-impl.rs:10:12 | |
| | | |
| LL | struct AnotherPrivateType; | |
| | ^^^^^^^^^^^^^^^^^^ | |
| error: struct `AnotherPrivateType` is never constructed | |
| --> $DIR/allow-trait-or-impl.rs:34:12 | |
| | | |
| LL | struct AnotherPrivateType; | |
| | ^^^^^^^^^^^^^^^^^^ | |
| error: aborting due to 3 previous errors | |