@@ -105,6 +105,7 @@ error: this pattern relies on behavior which may change in edition 2024
105105LL | test_pat_on_type![(&x,): &(&T,)];
106106 | ^ cannot implicitly match against multiple layers of reference
107107 |
108+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
108109help: make the implied reference pattern explicit
109110 |
110111LL | test_pat_on_type![&(&x,): &(&T,)];
@@ -116,6 +117,7 @@ error: this pattern relies on behavior which may change in edition 2024
116117LL | test_pat_on_type![(&mut x,): &(&mut T,)];
117118 | ^^^^ cannot implicitly match against multiple layers of reference
118119 |
120+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
119121help: make the implied reference pattern explicit
120122 |
121123LL | test_pat_on_type![&(&mut x,): &(&mut T,)];
@@ -127,6 +129,7 @@ error: this pattern relies on behavior which may change in edition 2024
127129LL | test_pat_on_type![Foo { f: &(x,) }: &Foo];
128130 | ^ cannot implicitly match against multiple layers of reference
129131 |
132+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
130133help: make the implied reference pattern explicit
131134 |
132135LL | test_pat_on_type![&Foo { f: &(x,) }: &Foo];
@@ -138,6 +141,7 @@ error: this pattern relies on behavior which may change in edition 2024
138141LL | test_pat_on_type![(mut x,): &(T,)];
139142 | ^^^ requires binding by-value, but the implicit default is by-reference
140143 |
144+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
141145help: make the implied reference pattern explicit
142146 |
143147LL | test_pat_on_type![&(mut x,): &(T,)];
@@ -149,6 +153,7 @@ error: this pattern relies on behavior which may change in edition 2024
149153LL | test_pat_on_type![(ref x,): &(T,)];
150154 | ^^^ cannot override to bind by-reference when that is the implicit default
151155 |
156+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
152157help: make the implied reference pattern explicit
153158 |
154159LL | test_pat_on_type![&(ref x,): &(T,)];
@@ -160,6 +165,7 @@ error: this pattern relies on behavior which may change in edition 2024
160165LL | test_pat_on_type![(ref mut x,): &mut (T,)];
161166 | ^^^^^^^ cannot override to bind by-reference when that is the implicit default
162167 |
168+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
163169help: make the implied reference pattern explicit
164170 |
165171LL | 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
171177LL | (&x,) => x,
172178 | ^ cannot implicitly match against multiple layers of reference
173179 |
180+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
174181help: make the implied reference pattern explicit
175182 |
176183LL | &(&x,) => x,
0 commit comments