1 error[E0510]: cannot assign `x` in indexing expression
2 --> $DIR/slice-index-bounds-check-invalidation.rs:36:12
5 | ---- ^^^^^ cannot assign
7 | value is immutable in indexing expression
9 error[E0510]: cannot assign `x` in indexing expression
10 --> $DIR/slice-index-bounds-check-invalidation.rs:50:12
12 LL | x[1][{ x = y; 2}]
13 | ---- ^^^^^ cannot assign
15 | value is immutable in indexing expression
17 error[E0510]: cannot assign `x` in indexing expression
18 --> $DIR/slice-index-bounds-check-invalidation.rs:64:12
20 LL | x[1][{ x = y; 2}][0]
21 | ---- ^^^^^ cannot assign
23 | value is immutable in indexing expression
25 error[E0510]: cannot assign `x` in indexing expression
26 --> $DIR/slice-index-bounds-check-invalidation.rs:71:12
28 LL | x[1][{ x = y; 2}][0]
29 | ---- ^^^^^ cannot assign
31 | value is immutable in indexing expression
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0510`.