@@ -23,7 +23,7 @@ LL | fn bindings_after_at_slice_patterns_move_binding(x: [String; 4]) {
23
23
| - move occurs because `x` has type `[String; 4]`, which does not implement the `Copy` trait
24
24
LL | match x {
25
25
LL | a @ [.., _] => (),
26
- | ----------- value moved here
26
+ | - value moved here
27
27
...
28
28
LL | &x;
29
29
| ^^ value borrowed here after move
@@ -32,7 +32,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
32
32
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:28:5
33
33
|
34
34
LL | ref mut foo @ [.., _] => Some(foo),
35
- | --------------------- mutable borrow occurs here
35
+ | ----------- mutable borrow occurs here
36
36
...
37
37
LL | &x;
38
38
| ^^ immutable borrow occurs here
@@ -44,7 +44,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
44
44
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:50:5
45
45
|
46
46
LL | [ref foo @ .., ref bar] => Some(foo),
47
- | ------------ immutable borrow occurs here
47
+ | ------- immutable borrow occurs here
48
48
...
49
49
LL | &mut x;
50
50
| ^^^^^^ mutable borrow occurs here
@@ -56,7 +56,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
56
56
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:62:5
57
57
|
58
58
LL | ref foo @ [.., ref bar] => Some(foo),
59
- | ----------------------- immutable borrow occurs here
59
+ | ------- immutable borrow occurs here
60
60
...
61
61
LL | &mut x;
62
62
| ^^^^^^ mutable borrow occurs here
@@ -71,7 +71,7 @@ LL | fn bindings_after_at_or_patterns_move(x: Option<Test>) {
71
71
| - move occurs because `x` has type `Option<Test>`, which does not implement the `Copy` trait
72
72
LL | match x {
73
73
LL | foo @ Some(Test::Foo | Test::Bar) => (),
74
- | ---------------------------------
74
+ | ---
75
75
| |
76
76
| value moved here
77
77
| value moved here
@@ -83,7 +83,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
83
83
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:86:5
84
84
|
85
85
LL | ref foo @ Some(Test::Foo | Test::Bar) => Some(foo),
86
- | ------------------------------------- immutable borrow occurs here
86
+ | ------- immutable borrow occurs here
87
87
...
88
88
LL | &mut x;
89
89
| ^^^^^^ mutable borrow occurs here
@@ -95,7 +95,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
95
95
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:98:5
96
96
|
97
97
LL | ref mut foo @ Some(Test::Foo | Test::Bar) => Some(foo),
98
- | ----------------------------------------- mutable borrow occurs here
98
+ | ----------- mutable borrow occurs here
99
99
...
100
100
LL | &x;
101
101
| ^^ immutable borrow occurs here
@@ -107,7 +107,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
107
107
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:112:5
108
108
|
109
109
LL | ref foo @ Some(box ref s) => Some(foo),
110
- | ------------------------- immutable borrow occurs here
110
+ | ------- immutable borrow occurs here
111
111
...
112
112
LL | &mut x;
113
113
| ^^^^^^ mutable borrow occurs here
@@ -122,7 +122,7 @@ LL | fn bindings_after_at_slice_patterns_or_patterns_moves(x: [Option<Test>; 4])
122
122
| - move occurs because `x` has type `[Option<Test>; 4]`, which does not implement the `Copy` trait
123
123
LL | match x {
124
124
LL | a @ [.., Some(Test::Foo | Test::Bar)] => (),
125
- | -------------------------------------
125
+ | -
126
126
| |
127
127
| value moved here
128
128
| value moved here
@@ -134,7 +134,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
134
134
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:144:5
135
135
|
136
136
LL | ref a @ [ref b @ .., Some(Test::Foo | Test::Bar)] => Some(a),
137
- | ------------------------------------------------- immutable borrow occurs here
137
+ | ----- immutable borrow occurs here
138
138
...
139
139
LL | &mut x;
140
140
| ^^^^^^ mutable borrow occurs here
@@ -146,7 +146,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
146
146
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:156:5
147
147
|
148
148
LL | ref a @ [ref b @ .., Some(Test::Foo | Test::Bar)] => Some(b),
149
- | ---------- immutable borrow occurs here
149
+ | ----- immutable borrow occurs here
150
150
...
151
151
LL | &mut x;
152
152
| ^^^^^^ mutable borrow occurs here
@@ -158,7 +158,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
158
158
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:170:5
159
159
|
160
160
LL | [_, ref a @ Some(box ref b), ..] => Some(a),
161
- | ----------------------- immutable borrow occurs here
161
+ | ----- immutable borrow occurs here
162
162
...
163
163
LL | &mut x;
164
164
| ^^^^^^ mutable borrow occurs here
@@ -170,7 +170,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
170
170
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:186:5
171
171
|
172
172
LL | [_, ref a @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
173
- | ------------------------------------------- immutable borrow occurs here
173
+ | ----- immutable borrow occurs here
174
174
...
175
175
LL | &mut x;
176
176
| ^^^^^^ mutable borrow occurs here
@@ -182,7 +182,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
182
182
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:200:5
183
183
|
184
184
LL | [_, ref mut a @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
185
- | ----------------------------------------------- mutable borrow occurs here
185
+ | --------- mutable borrow occurs here
186
186
...
187
187
LL | &x;
188
188
| ^^ immutable borrow occurs here
@@ -194,7 +194,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
194
194
--> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:214:5
195
195
|
196
196
LL | ref a @ [_, ref b @ Some(box Test::Foo | box Test::Bar), ..] => Some(a),
197
- | ------------------------------------------------------------ immutable borrow occurs here
197
+ | ----- immutable borrow occurs here
198
198
...
199
199
LL | &mut x;
200
200
| ^^^^^^ mutable borrow occurs here
0 commit comments