LL | let x = &mut v;
| ------ borrow of `v` occurs here
LL | match v {
-LL | &[x..] => println!("{:?}", x),
- | ^ use of borrowed `v`
+LL | &[x @ ..] => println!("{:?}", x),
+ | ^^^^^^ use of borrowed `v`
...
LL | drop(x);
| - borrow later used here
LL | let x = &mut v;
| ------ borrow of `v` occurs here
...
-LL | &[_, x..] => println!("{:?}", x),
- | ^ use of borrowed `v`
+LL | &[_, x @ ..] => println!("{:?}", x),
+ | ^^^^^^ use of borrowed `v`
...
LL | drop(x);
| - borrow later used here
LL | let x = &mut v;
| ------ borrow of `v` occurs here
...
-LL | &[x.., _] => println!("{:?}", x),
- | ^ use of borrowed `v`
+LL | &[x @ .., _] => println!("{:?}", x),
+ | ^^^^^^ use of borrowed `v`
...
LL | drop(x);
| - borrow later used here
LL | let x = &mut v;
| ------ borrow of `v` occurs here
...
-LL | &[_, x.., _] => println!("{:?}", x),
- | ^ use of borrowed `v`
+LL | &[_, x @ .., _] => println!("{:?}", x),
+ | ^^^^^^ use of borrowed `v`
...
LL | drop(x);
| - borrow later used here