about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/normalize/normalized-const-built-in-op.rs
blob: d82e0b8d43ff64f3a06318b47cfbe6b72475a4b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ compile-flags: -Znext-solver
//@ 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() {}