rust/tests/ui/issues/issue-29743.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
94 B
Rust
Raw Normal View History

// check-pass
2018-10-04 19:50:23 +00:00
fn main() {
let mut i = [1, 2, 3];
i[i[0]] = 0;
i[i[0] - 1] = 0;
}