| 1 |
#[test] |
| 2 |
pub fn test_cast_array() { |
| 3 |
let x = [0u32, 1u32, 2u32]; |
| 4 |
let _: [u16; 6] = bytemuck::cast(x); |
| 5 |
} |
| 6 |
|
| 7 |
#[cfg(feature = "min_const_generics")] |
| 8 |
#[test] |
| 9 |
pub fn test_cast_long_array() { |
| 10 |
let x = [0u32; 65]; |
| 11 |
let _: [u16; 130] = bytemuck::cast(x); |
| 12 |
} |