mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00

We cannot transform `*elem` to `array[idx1]` in the following code, as `idx1` has already been modified. ```rust mir! { let array; let elem; { array = [*val; 5]; elem = &array[idx1]; idx1 = idx2; RET = *elem; Return() } } ```