mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Add a regression test for #113238
This commit is contained in:
parent
180dffba14
commit
677afb4b45
9
tests/ui/std/slice-from-array-issue-113238.rs
Normal file
9
tests/ui/std/slice-from-array-issue-113238.rs
Normal file
@ -0,0 +1,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(&[]);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user