]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/issue_76432.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / mir-opt / issue_76432.rs
CommitLineData
1b1a35ee
XL
1// Check that we do not insert StorageDead at each target if StorageDead was never seen
2
3// EMIT_MIR issue_76432.test.SimplifyComparisonIntegral.diff
4use std::fmt::Debug;
5
6fn test<T: Copy + Debug + PartialEq>(x: T) {
7 let v: &[T] = &[x, x, x];
8 match v {
9 [ref v1, ref v2, ref v3] => [v1 as *const _, v2 as *const _, v3 as *const _],
10 _ => unreachable!(),
11 };
12}
13
14fn main() {
15 test(0u32);
16}