mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
12 lines
253 B
Rust
12 lines
253 B
Rust
// 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() {}
|