2022-10-24 19:27:27 -05:00
|
|
|
// unit-test: DataflowConstProp
|
|
|
|
|
|
|
|
// EMIT_MIR tuple.main.DataflowConstProp.diff
|
|
|
|
fn main() {
|
|
|
|
let mut a = (1, 2);
|
2022-11-09 11:03:30 -06:00
|
|
|
let b = a.0 + a.1 + 3;
|
2022-10-24 19:27:27 -05:00
|
|
|
a = (2, 3);
|
2022-11-09 11:03:30 -06:00
|
|
|
let c = a.0 + a.1 + b;
|
2022-10-24 19:27:27 -05:00
|
|
|
}
|