summaryrefslogtreecommitdiffstats
path: root/tests/ui/codegen/issue-16602-1.rs
blob: dd64ee75b34637a477dcef026dcc720ce7b13554 (plain)
1
2
3
4
5
6
// run-pass
fn main() {
    let mut t = [1; 2];
    t = [t[1] * 2, t[0] * 2];
    assert_eq!(&t[..], &[2, 2]);
}