@@ -192,8 +192,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
192192LL | let x = &mut v;
193193 | ------ borrow of `v` occurs here
194194LL | match v {
195- LL | &[x..] => println!("{:?}", x),
196- | ^ use of borrowed `v`
195+ LL | &[x @ ..] => println!("{:?}", x),
196+ | ^^^^^^ use of borrowed `v`
197197...
198198LL | drop(x);
199199 | - borrow later used here
@@ -204,8 +204,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
204204LL | let x = &mut v;
205205 | ------ borrow of `v` occurs here
206206...
207- LL | &[_, x..] => println!("{:?}", x),
208- | ^ use of borrowed `v`
207+ LL | &[_, x @ ..] => println!("{:?}", x),
208+ | ^^^^^^ use of borrowed `v`
209209...
210210LL | drop(x);
211211 | - borrow later used here
@@ -216,8 +216,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
216216LL | let x = &mut v;
217217 | ------ borrow of `v` occurs here
218218...
219- LL | &[x.., _] => println!("{:?}", x),
220- | ^ use of borrowed `v`
219+ LL | &[x @ .., _] => println!("{:?}", x),
220+ | ^^^^^^ use of borrowed `v`
221221...
222222LL | drop(x);
223223 | - borrow later used here
@@ -228,8 +228,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
228228LL | let x = &mut v;
229229 | ------ borrow of `v` occurs here
230230...
231- LL | &[_, x.., _] => println!("{:?}", x),
232- | ^ use of borrowed `v`
231+ LL | &[_, x @ .., _] => println!("{:?}", x),
232+ | ^^^^^^ use of borrowed `v`
233233...
234234LL | drop(x);
235235 | - borrow later used here
0 commit comments