Skip to content

Commit d33696f

Browse files
committed
borrowck-describe-lvalue: --bless --compare-mode=nll.
1 parent 8774207 commit d33696f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/test/ui/borrowck/borrowck-describe-lvalue.nll.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
192192
LL | let x = &mut v;
193193
| ------ borrow of `v` occurs here
194194
LL | match v {
195-
LL | &[x..] => println!("{:?}", x),
196-
| ^ use of borrowed `v`
195+
LL | &[x @ ..] => println!("{:?}", x),
196+
| ^^^^^^ use of borrowed `v`
197197
...
198198
LL | drop(x);
199199
| - borrow later used here
@@ -204,8 +204,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
204204
LL | 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
...
210210
LL | drop(x);
211211
| - borrow later used here
@@ -216,8 +216,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
216216
LL | 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
...
222222
LL | drop(x);
223223
| - borrow later used here
@@ -228,8 +228,8 @@ error[E0503]: cannot use `v[..]` because it was mutably borrowed
228228
LL | 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
...
234234
LL | drop(x);
235235
| - borrow later used here

0 commit comments

Comments
 (0)