]>
Commit | Line | Data |
---|---|---|
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 | |
4 | use std::fmt::Debug; | |
5 | ||
6 | fn 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 | ||
14 | fn main() { | |
15 | test(0u32); | |
16 | } |