add-u8-align-check (#23860)
This commit is contained in:
@ -4908,5 +4908,7 @@ mod tests {
|
|||||||
fn test_check_type_assumptions() {
|
fn test_check_type_assumptions() {
|
||||||
// Code in this file assumes that u64 and usize are the same
|
// Code in this file assumes that u64 and usize are the same
|
||||||
assert_eq!(size_of::<u64>(), size_of::<usize>());
|
assert_eq!(size_of::<u64>(), size_of::<usize>());
|
||||||
|
// Code in this file assumes that u8 is byte aligned
|
||||||
|
assert_eq!(1, align_of::<u8>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user