2023-08-14 18:48:39 -05:00
|
|
|
// 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.
|
2024-04-28 14:37:14 -05:00
|
|
|
#[test]
|
|
|
|
fn slice_from_array() {
|
2023-08-14 18:48:39 -05:00
|
|
|
let _ = <&[u8]>::from(&[]);
|
|
|
|
}
|