@@ -105,6 +105,7 @@ error: this pattern relies on behavior which may change in edition 2024
105
105
LL | test_pat_on_type![(&x,): &(&T,)];
106
106
| ^ cannot implicitly match against multiple layers of reference
107
107
|
108
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
108
109
help: make the implied reference pattern explicit
109
110
|
110
111
LL | test_pat_on_type![&(&x,): &(&T,)];
@@ -116,6 +117,7 @@ error: this pattern relies on behavior which may change in edition 2024
116
117
LL | test_pat_on_type![(&mut x,): &(&mut T,)];
117
118
| ^^^^ cannot implicitly match against multiple layers of reference
118
119
|
120
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
119
121
help: make the implied reference pattern explicit
120
122
|
121
123
LL | test_pat_on_type![&(&mut x,): &(&mut T,)];
@@ -127,6 +129,7 @@ error: this pattern relies on behavior which may change in edition 2024
127
129
LL | test_pat_on_type![Foo { f: &(x,) }: &Foo];
128
130
| ^ cannot implicitly match against multiple layers of reference
129
131
|
132
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
130
133
help: make the implied reference pattern explicit
131
134
|
132
135
LL | test_pat_on_type![&Foo { f: &(x,) }: &Foo];
@@ -138,6 +141,7 @@ error: this pattern relies on behavior which may change in edition 2024
138
141
LL | test_pat_on_type![(mut x,): &(T,)];
139
142
| ^^^ requires binding by-value, but the implicit default is by-reference
140
143
|
144
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
141
145
help: make the implied reference pattern explicit
142
146
|
143
147
LL | test_pat_on_type![&(mut x,): &(T,)];
@@ -149,6 +153,7 @@ error: this pattern relies on behavior which may change in edition 2024
149
153
LL | test_pat_on_type![(ref x,): &(T,)];
150
154
| ^^^ cannot override to bind by-reference when that is the implicit default
151
155
|
156
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
152
157
help: make the implied reference pattern explicit
153
158
|
154
159
LL | test_pat_on_type![&(ref x,): &(T,)];
@@ -160,6 +165,7 @@ error: this pattern relies on behavior which may change in edition 2024
160
165
LL | test_pat_on_type![(ref mut x,): &mut (T,)];
161
166
| ^^^^^^^ cannot override to bind by-reference when that is the implicit default
162
167
|
168
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
163
169
help: make the implied reference pattern explicit
164
170
|
165
171
LL | test_pat_on_type![&mut (ref mut x,): &mut (T,)];
@@ -171,6 +177,7 @@ error: this pattern relies on behavior which may change in edition 2024
171
177
LL | (&x,) => x,
172
178
| ^ cannot implicitly match against multiple layers of reference
173
179
|
180
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
174
181
help: make the implied reference pattern explicit
175
182
|
176
183
LL | &(&x,) => x,
0 commit comments