summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/normalized-const-built-in-op.rs
blob: 2443e517813917f2ca42b0cbe0e360876b553fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Ztrait-solver=next
// check-pass

const fn foo() {
    let mut x = [1, 2, 3];
    // We need to fix up `<<[i32; 3] as Index<usize>>::Output as AddAssign>`
    // to be treated like a built-in operation.
    x[1] += 5;
}

fn main() {}