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
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,10 @@ error: binding modifiers may only be written when the default binding mode is `m
14
14
--> $DIR/ref-binding-on-inh-ref-errors.rs:67:10
15
15
|
16
16
LL | let [ref mut x] = &[0];
17
-
| ^^^^^^^ default binding mode is `ref`
17
+
| ^^^^^^^--
18
+
| |
19
+
| this binding modifier
20
+
| default binding mode is `ref`
18
21
|
19
22
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
20
23
help: make the implied reference pattern explicit
@@ -32,7 +35,10 @@ error: binding modifiers may only be written when the default binding mode is `m
32
35
--> $DIR/ref-binding-on-inh-ref-errors.rs:75:10
33
36
|
34
37
LL | let [ref x] = &[0];
35
-
| ^^^ default binding mode is `ref`
38
+
| ^^^--
39
+
| |
40
+
| this binding modifier
41
+
| default binding mode is `ref`
36
42
|
37
43
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
38
44
help: make the implied reference pattern explicit
@@ -44,7 +50,10 @@ error: binding modifiers may only be written when the default binding mode is `m
44
50
--> $DIR/ref-binding-on-inh-ref-errors.rs:79:10
45
51
|
46
52
LL | let [ref x] = &mut [0];
47
-
| ^^^ default binding mode is `ref mut`
53
+
| ^^^--
54
+
| |
55
+
| this binding modifier
56
+
| default binding mode is `ref mut`
48
57
|
49
58
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
50
59
help: make the implied reference pattern explicit
@@ -56,7 +65,10 @@ error: binding modifiers may only be written when the default binding mode is `m
56
65
--> $DIR/ref-binding-on-inh-ref-errors.rs:83:10
57
66
|
58
67
LL | let [ref mut x] = &mut [0];
59
-
| ^^^^^^^ default binding mode is `ref mut`
68
+
| ^^^^^^^--
69
+
| |
70
+
| this binding modifier
71
+
| default binding mode is `ref mut`
60
72
|
61
73
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
Copy file name to clipboardExpand all lines: tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/ref-binding-on-inh-ref-errors.structural2024.stderr
+44-11Lines changed: 44 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,10 @@ error: binding modifiers may only be written when the default binding mode is `m
2
2
--> $DIR/ref-binding-on-inh-ref-errors.rs:15:11
3
3
|
4
4
LL | let [&ref x] = &[&0];
5
-
| ^^^ default binding mode is `ref`
5
+
| ^^^--
6
+
| |
7
+
| this binding modifier
8
+
| default binding mode is `ref`
6
9
|
7
10
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
8
11
help: make the implied reference pattern explicit
@@ -14,7 +17,10 @@ error: binding modifiers may only be written when the default binding mode is `m
14
17
--> $DIR/ref-binding-on-inh-ref-errors.rs:20:11
15
18
|
16
19
LL | let [&ref x] = &mut [&0];
17
-
| ^^^ default binding mode is `ref`
20
+
| ^^^--
21
+
| |
22
+
| this binding modifier
23
+
| default binding mode is `ref`
18
24
|
19
25
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
20
26
help: make the implied reference pattern explicit
@@ -26,7 +32,10 @@ error: binding modifiers may only be written when the default binding mode is `m
26
32
--> $DIR/ref-binding-on-inh-ref-errors.rs:25:15
27
33
|
28
34
LL | let [&mut ref x] = &mut [&mut 0];
29
-
| ^^^ default binding mode is `ref mut`
35
+
| ^^^--
36
+
| |
37
+
| this binding modifier
38
+
| default binding mode is `ref mut`
30
39
|
31
40
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
32
41
help: make the implied reference pattern explicit
@@ -38,7 +47,10 @@ error: binding modifiers may only be written when the default binding mode is `m
38
47
--> $DIR/ref-binding-on-inh-ref-errors.rs:30:15
39
48
|
40
49
LL | let [&mut ref mut x] = &mut [&mut 0];
41
-
| ^^^^^^^ default binding mode is `ref mut`
50
+
| ^^^^^^^--
51
+
| |
52
+
| this binding modifier
53
+
| default binding mode is `ref mut`
42
54
|
43
55
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
44
56
help: make the implied reference pattern explicit
@@ -50,7 +62,10 @@ error: binding modifiers may only be written when the default binding mode is `m
50
62
--> $DIR/ref-binding-on-inh-ref-errors.rs:39:11
51
63
|
52
64
LL | let [&ref x] = &[&mut 0];
53
-
| ^^^ default binding mode is `ref`
65
+
| ^^^--
66
+
| |
67
+
| this binding modifier
68
+
| default binding mode is `ref`
54
69
|
55
70
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
56
71
help: make the implied reference pattern explicit
@@ -62,7 +77,10 @@ error: binding modifiers may only be written when the default binding mode is `m
62
77
--> $DIR/ref-binding-on-inh-ref-errors.rs:45:11
63
78
|
64
79
LL | let [&ref x] = &mut [&mut 0];
65
-
| ^^^ default binding mode is `ref`
80
+
| ^^^--
81
+
| |
82
+
| this binding modifier
83
+
| default binding mode is `ref`
66
84
|
67
85
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
68
86
help: make the implied reference pattern explicit
@@ -74,7 +92,10 @@ error: binding modifiers may only be written when the default binding mode is `m
74
92
--> $DIR/ref-binding-on-inh-ref-errors.rs:54:15
75
93
|
76
94
LL | let [&mut ref x] = &[&mut 0];
77
-
| ^^^ default binding mode is `ref`
95
+
| ^^^--
96
+
| |
97
+
| this binding modifier
98
+
| default binding mode is `ref`
78
99
|
79
100
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
80
101
help: make the implied reference pattern explicit
@@ -86,7 +107,10 @@ error: binding modifiers may only be written when the default binding mode is `m
86
107
--> $DIR/ref-binding-on-inh-ref-errors.rs:67:10
87
108
|
88
109
LL | let [ref mut x] = &[0];
89
-
| ^^^^^^^ default binding mode is `ref`
110
+
| ^^^^^^^--
111
+
| |
112
+
| this binding modifier
113
+
| default binding mode is `ref`
90
114
|
91
115
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
92
116
help: make the implied reference pattern explicit
@@ -104,7 +128,10 @@ error: binding modifiers may only be written when the default binding mode is `m
104
128
--> $DIR/ref-binding-on-inh-ref-errors.rs:75:10
105
129
|
106
130
LL | let [ref x] = &[0];
107
-
| ^^^ default binding mode is `ref`
131
+
| ^^^--
132
+
| |
133
+
| this binding modifier
134
+
| default binding mode is `ref`
108
135
|
109
136
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
110
137
help: make the implied reference pattern explicit
@@ -116,7 +143,10 @@ error: binding modifiers may only be written when the default binding mode is `m
116
143
--> $DIR/ref-binding-on-inh-ref-errors.rs:79:10
117
144
|
118
145
LL | let [ref x] = &mut [0];
119
-
| ^^^ default binding mode is `ref mut`
146
+
| ^^^--
147
+
| |
148
+
| this binding modifier
149
+
| default binding mode is `ref mut`
120
150
|
121
151
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
122
152
help: make the implied reference pattern explicit
@@ -128,7 +158,10 @@ error: binding modifiers may only be written when the default binding mode is `m
128
158
--> $DIR/ref-binding-on-inh-ref-errors.rs:83:10
129
159
|
130
160
LL | let [ref mut x] = &mut [0];
131
-
| ^^^^^^^ default binding mode is `ref mut`
161
+
| ^^^^^^^--
162
+
| |
163
+
| this binding modifier
164
+
| default binding mode is `ref mut`
132
165
|
133
166
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
0 commit comments