1
Fork 0

Move various stdlib tests to library/std/tests

This commit is contained in:
Ryan Lowe 2024-04-28 15:37:14 -04:00
parent ce609db948
commit ed9d6e0c03
9 changed files with 24 additions and 33 deletions

View file

@ -0,0 +1,8 @@
// This intends to use the unsizing coercion from array to slice, but it only
// works if we resolve `<&[u8]>::from` as the reflexive `From<T> for T`. In
// #113238, we found that gimli had added its own `From<EndianSlice> for &[u8]`
// that affected all `std/backtrace` users.
#[test]
fn slice_from_array() {
let _ = <&[u8]>::from(&[]);
}