rust/tests/ui/traits/next-solver/normalize/normalized-const-built-in-op.rs
2024-03-11 19:16:39 +00:00

12 lines
249 B
Rust

//@ 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() {}