@@ -23,7 +23,7 @@ LL | fn bindings_after_at_slice_patterns_move_binding(x: [String; 4]) {
2323 | - move occurs because `x` has type `[String; 4]`, which does not implement the `Copy` trait
2424LL | match x {
2525LL | a @ [.., _] => (),
26- | ----------- value moved here
26+ | - value moved here
2727...
2828LL | &x;
2929 | ^^ value borrowed here after move
@@ -32,7 +32,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
3232 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:28:5
3333 |
3434LL | ref mut foo @ [.., _] => Some(foo),
35- | --------------------- mutable borrow occurs here
35+ | ----------- mutable borrow occurs here
3636...
3737LL | &x;
3838 | ^^ immutable borrow occurs here
@@ -44,7 +44,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
4444 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:50:5
4545 |
4646LL | [ref foo @ .., ref bar] => Some(foo),
47- | ------------ immutable borrow occurs here
47+ | ------- immutable borrow occurs here
4848...
4949LL | &mut x;
5050 | ^^^^^^ mutable borrow occurs here
@@ -56,7 +56,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
5656 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:62:5
5757 |
5858LL | ref foo @ [.., ref bar] => Some(foo),
59- | ----------------------- immutable borrow occurs here
59+ | ------- immutable borrow occurs here
6060...
6161LL | &mut x;
6262 | ^^^^^^ mutable borrow occurs here
@@ -71,7 +71,7 @@ LL | fn bindings_after_at_or_patterns_move(x: Option<Test>) {
7171 | - move occurs because `x` has type `Option<Test>`, which does not implement the `Copy` trait
7272LL | match x {
7373LL | foo @ Some(Test::Foo | Test::Bar) => (),
74- | ---------------------------------
74+ | ---
7575 | |
7676 | value moved here
7777 | value moved here
@@ -83,7 +83,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
8383 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:86:5
8484 |
8585LL | ref foo @ Some(Test::Foo | Test::Bar) => Some(foo),
86- | ------------------------------------- immutable borrow occurs here
86+ | ------- immutable borrow occurs here
8787...
8888LL | &mut x;
8989 | ^^^^^^ mutable borrow occurs here
@@ -95,7 +95,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
9595 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:98:5
9696 |
9797LL | ref mut foo @ Some(Test::Foo | Test::Bar) => Some(foo),
98- | ----------------------------------------- mutable borrow occurs here
98+ | ----------- mutable borrow occurs here
9999...
100100LL | &x;
101101 | ^^ immutable borrow occurs here
@@ -107,7 +107,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
107107 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:112:5
108108 |
109109LL | ref foo @ Some(box ref s) => Some(foo),
110- | ------------------------- immutable borrow occurs here
110+ | ------- immutable borrow occurs here
111111...
112112LL | &mut x;
113113 | ^^^^^^ mutable borrow occurs here
@@ -122,7 +122,7 @@ LL | fn bindings_after_at_slice_patterns_or_patterns_moves(x: [Option<Test>; 4])
122122 | - move occurs because `x` has type `[Option<Test>; 4]`, which does not implement the `Copy` trait
123123LL | match x {
124124LL | a @ [.., Some(Test::Foo | Test::Bar)] => (),
125- | -------------------------------------
125+ | -
126126 | |
127127 | value moved here
128128 | value moved here
@@ -134,7 +134,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
134134 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:144:5
135135 |
136136LL | ref a @ [ref b @ .., Some(Test::Foo | Test::Bar)] => Some(a),
137- | ------------------------------------------------- immutable borrow occurs here
137+ | ----- immutable borrow occurs here
138138...
139139LL | &mut x;
140140 | ^^^^^^ mutable borrow occurs here
@@ -146,7 +146,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
146146 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:156:5
147147 |
148148LL | ref a @ [ref b @ .., Some(Test::Foo | Test::Bar)] => Some(b),
149- | ---------- immutable borrow occurs here
149+ | ----- immutable borrow occurs here
150150...
151151LL | &mut x;
152152 | ^^^^^^ mutable borrow occurs here
@@ -158,7 +158,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
158158 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:170:5
159159 |
160160LL | [_, ref a @ Some(box ref b), ..] => Some(a),
161- | ----------------------- immutable borrow occurs here
161+ | ----- immutable borrow occurs here
162162...
163163LL | &mut x;
164164 | ^^^^^^ mutable borrow occurs here
@@ -170,7 +170,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
170170 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:186:5
171171 |
172172LL | [_, ref a @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
173- | ------------------------------------------- immutable borrow occurs here
173+ | ----- immutable borrow occurs here
174174...
175175LL | &mut x;
176176 | ^^^^^^ mutable borrow occurs here
@@ -182,7 +182,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
182182 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:200:5
183183 |
184184LL | [_, ref mut a @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
185- | ----------------------------------------------- mutable borrow occurs here
185+ | --------- mutable borrow occurs here
186186...
187187LL | &x;
188188 | ^^ immutable borrow occurs here
@@ -194,7 +194,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
194194 --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:214:5
195195 |
196196LL | ref a @ [_, ref b @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
197- | ------------------------------------------------------------ immutable borrow occurs here
197+ | ----- immutable borrow occurs here
198198...
199199LL | &mut x;
200200 | ^^^^^^ mutable borrow occurs here
0 commit comments