mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
16 lines
299 B
Rust
16 lines
299 B
Rust
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
//@ unit-test: GVN
|
|
|
|
// This used to ICE in const-prop
|
|
|
|
fn test(this: ((u8, u8),)) {
|
|
assert!((this.0).0 == 1);
|
|
}
|
|
|
|
// EMIT_MIR issue_67019.main.GVN.diff
|
|
fn main() {
|
|
// CHECK-LABEL: fn main(
|
|
// CHECK: = test(const ((1_u8, 2_u8),))
|
|
test(((1, 2),));
|
|
}
|