]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs
Auto merge of #99066 - est31:remove_box_librustdoc, r=jsha
[rust.git] / src / test / mir-opt / const_prop / mutable_variable_aggregate_partial_read.rs
1 // compile-flags: -O
2
3 // EMIT_MIR mutable_variable_aggregate_partial_read.main.ConstProp.diff
4 fn main() {
5     let mut x: (i32, i32) = foo();
6     x.1 = 99;
7     x.0 = 42;
8     let y = x.1;
9 }
10
11 #[inline(never)]
12 fn foo() -> (i32, i32) {
13     unimplemented!()
14 }