You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/ref-binding-on-inh-ref-errors.classic2024.stderr
+12-4
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
21
21
--> $DIR/ref-binding-on-inh-ref-errors.rs:67:9
22
22
|
23
23
LL | let [ref mut x] = &[0];
24
-
| ^^^^^^^^^^^ the default binding mode is `ref`, introduced here
24
+
| ^----------
25
+
| |
26
+
| the default binding mode is `ref`, introduced here
25
27
help: make the implied reference pattern explicit
26
28
|
27
29
LL | let &[ref mut x] = &[0];
@@ -44,7 +46,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
44
46
--> $DIR/ref-binding-on-inh-ref-errors.rs:75:9
45
47
|
46
48
LL | let [ref x] = &[0];
47
-
| ^^^^^^^ the default binding mode is `ref`, introduced here
49
+
| ^------
50
+
| |
51
+
| the default binding mode is `ref`, introduced here
48
52
help: make the implied reference pattern explicit
49
53
|
50
54
LL | let &[ref x] = &[0];
@@ -61,7 +65,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
61
65
--> $DIR/ref-binding-on-inh-ref-errors.rs:79:9
62
66
|
63
67
LL | let [ref x] = &mut [0];
64
-
| ^^^^^^^ the default binding mode is `ref mut`, introduced here
68
+
| ^------
69
+
| |
70
+
| the default binding mode is `ref mut`, introduced here
65
71
help: make the implied reference pattern explicit
66
72
|
67
73
LL | let &mut [ref x] = &mut [0];
@@ -78,7 +84,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
78
84
--> $DIR/ref-binding-on-inh-ref-errors.rs:83:9
79
85
|
80
86
LL | let [ref mut x] = &mut [0];
81
-
| ^^^^^^^^^^^ the default binding mode is `ref mut`, introduced here
87
+
| ^----------
88
+
| |
89
+
| the default binding mode is `ref mut`, introduced here
Copy file name to clipboardExpand all lines: tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/ref-binding-on-inh-ref-errors.structural2024.stderr
+33-11
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
9
9
--> $DIR/ref-binding-on-inh-ref-errors.rs:15:9
10
10
|
11
11
LL | let [&ref x] = &[&0];
12
-
| ^^^^^^^^ the default binding mode is `ref`, introduced here
12
+
| ^-------
13
+
| |
14
+
| the default binding mode is `ref`, introduced here
13
15
help: make the implied reference pattern explicit
14
16
|
15
17
LL | let &[&ref x] = &[&0];
@@ -26,7 +28,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
26
28
--> $DIR/ref-binding-on-inh-ref-errors.rs:20:9
27
29
|
28
30
LL | let [&ref x] = &mut [&0];
29
-
| ^^^^^^^^ the default binding mode is `ref mut`, introduced here
31
+
| ^-------
32
+
| |
33
+
| the default binding mode is `ref mut`, introduced here
30
34
help: make the implied reference pattern explicit
31
35
|
32
36
LL | let &mut [&ref x] = &mut [&0];
@@ -43,7 +47,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
43
47
--> $DIR/ref-binding-on-inh-ref-errors.rs:25:9
44
48
|
45
49
LL | let [&mut ref x] = &mut [&mut 0];
46
-
| ^^^^^^^^^^^^ the default binding mode is `ref mut`, introduced here
50
+
| ^-----------
51
+
| |
52
+
| the default binding mode is `ref mut`, introduced here
47
53
help: make the implied reference pattern explicit
48
54
|
49
55
LL | let &mut [&mut ref x] = &mut [&mut 0];
@@ -60,7 +66,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
60
66
--> $DIR/ref-binding-on-inh-ref-errors.rs:30:9
61
67
|
62
68
LL | let [&mut ref mut x] = &mut [&mut 0];
63
-
| ^^^^^^^^^^^^^^^^ the default binding mode is `ref mut`, introduced here
69
+
| ^---------------
70
+
| |
71
+
| the default binding mode is `ref mut`, introduced here
64
72
help: make the implied reference pattern explicit
65
73
|
66
74
LL | let &mut [&mut ref mut x] = &mut [&mut 0];
@@ -77,7 +85,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
77
85
--> $DIR/ref-binding-on-inh-ref-errors.rs:39:9
78
86
|
79
87
LL | let [&ref x] = &[&mut 0];
80
-
| ^^^^^^^^ the default binding mode is `ref`, introduced here
88
+
| ^-------
89
+
| |
90
+
| the default binding mode is `ref`, introduced here
81
91
help: make the implied reference pattern explicit
82
92
|
83
93
LL | let &[&ref x] = &[&mut 0];
@@ -94,7 +104,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
94
104
--> $DIR/ref-binding-on-inh-ref-errors.rs:45:9
95
105
|
96
106
LL | let [&ref x] = &mut [&mut 0];
97
-
| ^^^^^^^^ the default binding mode is `ref mut`, introduced here
107
+
| ^-------
108
+
| |
109
+
| the default binding mode is `ref mut`, introduced here
98
110
help: make the implied reference pattern explicit
99
111
|
100
112
LL | let &mut [&ref x] = &mut [&mut 0];
@@ -111,7 +123,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
111
123
--> $DIR/ref-binding-on-inh-ref-errors.rs:54:9
112
124
|
113
125
LL | let [&mut ref x] = &[&mut 0];
114
-
| ^^^^^^^^^^^^ the default binding mode is `ref`, introduced here
126
+
| ^-----------
127
+
| |
128
+
| the default binding mode is `ref`, introduced here
115
129
help: make the implied reference pattern explicit
116
130
|
117
131
LL | let &[&mut ref x] = &[&mut 0];
@@ -128,7 +142,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
128
142
--> $DIR/ref-binding-on-inh-ref-errors.rs:67:9
129
143
|
130
144
LL | let [ref mut x] = &[0];
131
-
| ^^^^^^^^^^^ the default binding mode is `ref`, introduced here
145
+
| ^----------
146
+
| |
147
+
| the default binding mode is `ref`, introduced here
132
148
help: make the implied reference pattern explicit
133
149
|
134
150
LL | let &[ref mut x] = &[0];
@@ -151,7 +167,9 @@ note: the default binding mode changed to `ref` because this has type `&_`
151
167
--> $DIR/ref-binding-on-inh-ref-errors.rs:75:9
152
168
|
153
169
LL | let [ref x] = &[0];
154
-
| ^^^^^^^ the default binding mode is `ref`, introduced here
170
+
| ^------
171
+
| |
172
+
| the default binding mode is `ref`, introduced here
155
173
help: make the implied reference pattern explicit
156
174
|
157
175
LL | let &[ref x] = &[0];
@@ -168,7 +186,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
168
186
--> $DIR/ref-binding-on-inh-ref-errors.rs:79:9
169
187
|
170
188
LL | let [ref x] = &mut [0];
171
-
| ^^^^^^^ the default binding mode is `ref mut`, introduced here
189
+
| ^------
190
+
| |
191
+
| the default binding mode is `ref mut`, introduced here
172
192
help: make the implied reference pattern explicit
173
193
|
174
194
LL | let &mut [ref x] = &mut [0];
@@ -185,7 +205,9 @@ note: the default binding mode changed to `ref mut` because this has type `&mut
185
205
--> $DIR/ref-binding-on-inh-ref-errors.rs:83:9
186
206
|
187
207
LL | let [ref mut x] = &mut [0];
188
-
| ^^^^^^^^^^^ the default binding mode is `ref mut`, introduced here
208
+
| ^----------
209
+
| |
210
+
| the default binding mode is `ref mut`, introduced here
0 commit comments