Do fix_*_builtin_expr hacks on the writeback results
This commit is contained in:
parent
f383703e32
commit
8efcb28d3c
2 changed files with 46 additions and 48 deletions
11
tests/ui/traits/new-solver/normalized-const-built-in-op.rs
Normal file
11
tests/ui/traits/new-solver/normalized-const-built-in-op.rs
Normal file
|
@ -0,0 +1,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() {}
|
Loading…
Add table
Add a link
Reference in a new issue