proper transmute to u8

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2022-09-02 13:49:14 +02:00 committed by GitHub
parent 313ea879d3
commit de0b2735f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,8 +100,9 @@ fn bool_list_literal() {
List.repeat true 23
"#
),
RocList::from_slice(&[true; 22]),
RocList<bool>
RocList::from_slice(&[1u8; 23]),
RocList<bool>,
|l: RocList<bool>| unsafe { std::mem::transmute::<RocList<bool>, RocList<u8>>(l) }
);
/*assert_evals_to!(