@@ -32,23 +32,23 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
3232 --> $DIR/borrowck-slice-pattern-element-loan-slice.rs:25:23
3333 |
3434LL | if let [.., _, ref from_end4, ref from_end3, _, ref from_end1] = *s {
35- | ------------- immutable borrow occurs here
35+ | ------------- immutable borrow occurs here
3636...
3737LL | if let [_, _, ref mut from_begin2, ..] = *s {
3838 | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
3939LL | nop(&[from_begin2, from_end1, from_end3, from_end4]);
40- | --------- immutable borrow later used here
40+ | --------- immutable borrow later used here
4141
4242error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as immutable
4343 --> $DIR/borrowck-slice-pattern-element-loan-slice.rs:28:26
4444 |
4545LL | if let [.., _, ref from_end4, ref from_end3, _, ref from_end1] = *s {
46- | ------------- immutable borrow occurs here
46+ | ------------- immutable borrow occurs here
4747...
4848LL | if let [_, _, _, ref mut from_begin3, ..] = *s {
4949 | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
5050LL | nop(&[from_begin3, from_end1, from_end3, from_end4]);
51- | --------- immutable borrow later used here
51+ | --------- immutable borrow later used here
5252
5353error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as immutable
5454 --> $DIR/borrowck-slice-pattern-element-loan-slice.rs:33:21
@@ -75,12 +75,12 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
7575 --> $DIR/borrowck-slice-pattern-element-loan-slice.rs:39:21
7676 |
7777LL | if let [ref from_begin0, ref from_begin1, _, ref from_begin3, _, ..] = *s {
78- | --------------- immutable borrow occurs here
78+ | --------------- immutable borrow occurs here
7979...
8080LL | if let [.., ref mut from_end4, _, _, _] = *s {
8181 | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
8282LL | nop(&[from_begin0, from_begin1, from_begin3, from_end4]);
83- | ----------- immutable borrow later used here
83+ | ----------- immutable borrow later used here
8484
8585error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as immutable
8686 --> $DIR/borrowck-slice-pattern-element-loan-slice.rs:47:20
0 commit comments