blob: e9e1bfb8db3081c54c2891e78ad9c5db24877835 (
plain)
1
2
3
4
5
6
7
8
9
|
// check-pass
// 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.
fn main() {
let _ = <&[u8]>::from(&[]);
}
|