blob: 3760bf9c0df1f9f59f0498c6a6299526b3a0abb8 [file] [log] [blame]
// Verify that we do not warn on fields that are part of transparent types.
//@ check-pass
#![deny(dead_code)]
#[repr(transparent)]
struct NamedStruct { field: u8 }
#[repr(transparent)]
struct TupleStruct(u8);
fn main() {
let _ = NamedStruct { field: 1 };
let _ = TupleStruct(1);
}