summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-29743.rs
blob: 250cd7e1b25e90f1522af81644ffc8ab0c085698 (plain)
1
2
3
4
5
6
7
// check-pass

fn main() {
    let mut i = [1, 2, 3];
    i[i[0]] = 0;
    i[i[0] - 1] = 0;
}