diff options
| author | r0cky <mu001999@outlook.com> | 2024-06-05 23:20:09 +0800 |
|---|---|---|
| committer | r0cky <mu001999@outlook.com> | 2024-06-05 23:20:09 +0800 |
| commit | 35130d7233e939cc9a6fd8b72a4baee2eb59c3b2 (patch) | |
| tree | ea13e12817d949301828e9ff4f5775ca8ba9a31e /tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs | |
| parent | 2a2c29aafa50bf6fe53d66b32070eba59f860ac3 (diff) | |
| download | rust-35130d7233e939cc9a6fd8b72a4baee2eb59c3b2.tar.gz rust-35130d7233e939cc9a6fd8b72a4baee2eb59c3b2.zip | |
Detect pub structs never constructed and unused associated constants in traits
Diffstat (limited to 'tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs')
| -rw-r--r-- | tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs b/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs index 419d605d0c8..35c41ae4615 100644 --- a/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs +++ b/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs @@ -6,6 +6,7 @@ use std::mem::MaybeUninit; +#[allow(dead_code)] #[repr(transparent)] pub struct MaybeUninitWrapper<const N: usize>(MaybeUninit<[u64; N]>); |
