Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
12
third-party/vendor/bytemuck/tests/array_tests.rs
vendored
Normal file
12
third-party/vendor/bytemuck/tests/array_tests.rs
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#[test]
|
||||
pub fn test_cast_array() {
|
||||
let x = [0u32, 1u32, 2u32];
|
||||
let _: [u16; 6] = bytemuck::cast(x);
|
||||
}
|
||||
|
||||
#[cfg(feature = "min_const_generics")]
|
||||
#[test]
|
||||
pub fn test_cast_long_array() {
|
||||
let x = [0u32; 65];
|
||||
let _: [u16; 130] = bytemuck::cast(x);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue