Work around new dead code warning in test

warning: struct `StructTransparentGeneric` is never constructed
       --> tests/test_generics.rs:161:12
        |
    161 | pub struct StructTransparentGeneric<E>(E);
        |            ^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = note: `#[warn(dead_code)]` on by default
This commit is contained in:
David Tolnay 2024-07-31 12:25:46 -07:00
parent 915c75e8a3
commit 00b3c1405e
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -158,4 +158,4 @@ pub struct StructFromGeneric<E> {
//
#[derive(Error, Debug)]
#[error(transparent)]
pub struct StructTransparentGeneric<E>(E);
pub struct StructTransparentGeneric<E>(pub E);