()
| 33 | unsigned: u32, |
| 34 | signed: i32, |
| 35 | float: f32, |
| 36 | } |
| 37 | |
| 38 | #[derive(Copy, Clone)] |
| 39 | #[repr(C)] |
| 40 | struct CharacterAndUnit { |
| 41 | character: char, |
| 42 | unit: (), |
| 43 | } |
| 44 | |
| 45 | union CharacterBytes { |
| 46 | character: char, |
| 47 | code_point: u32, |
| 48 | bytes: FourBytes, |
| 49 | character_and_unit: CharacterAndUnit, |
| 50 | unit: (), |
| 51 | } |
| 52 | |
| 53 | #[derive(Copy, Clone)] |
| 54 | enum DefaultDiscriminant { |
| 55 | Zero, |
| 56 | Three = 3, |
| 57 | Four, |
| 58 | } |
| 59 | |
| 60 | union DefaultEnumByte { |
| 61 | value: DefaultDiscriminant, |
| 62 | byte: u8, |
| 63 | } |
| 64 | |
| 65 | #[derive(Copy, Clone)] |
| 66 | #[repr(i16)] |
| 67 | enum SignedDiscriminant { |
| 68 | Negative = -2, |
| 69 | Seven = 7, |
| 70 | Eight, |
| 71 | } |
| 72 |
nothing calls this directly
no outgoing calls
no test coverage detected