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