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-16
Original file line number
Diff line number
Diff line change
@@ -14,10 +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
-
| ^^^^^^^--
18
-
| |
19
-
| this binding modifier
20
-
| default binding mode is `ref`
17
+
| -^^^^^^^---
18
+
| ||
19
+
| |this binding modifier
20
+
| default binding mode is `ref`
21
21
|
22
22
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
23
23
help: make the implied reference pattern explicit
@@ -35,10 +35,10 @@ error: binding modifiers may only be written when the default binding mode is `m
35
35
--> $DIR/ref-binding-on-inh-ref-errors.rs:75:10
36
36
|
37
37
LL | let [ref x] = &[0];
38
-
| ^^^--
39
-
| |
40
-
| this binding modifier
41
-
| default binding mode is `ref`
38
+
| -^^^---
39
+
| ||
40
+
| |this binding modifier
41
+
| default binding mode is `ref`
42
42
|
43
43
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
44
44
help: make the implied reference pattern explicit
@@ -50,10 +50,10 @@ error: binding modifiers may only be written when the default binding mode is `m
50
50
--> $DIR/ref-binding-on-inh-ref-errors.rs:79:10
51
51
|
52
52
LL | let [ref x] = &mut [0];
53
-
| ^^^--
54
-
| |
55
-
| this binding modifier
56
-
| default binding mode is `ref mut`
53
+
| -^^^---
54
+
| ||
55
+
| |this binding modifier
56
+
| default binding mode is `ref mut`
57
57
|
58
58
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
59
59
help: make the implied reference pattern explicit
@@ -65,10 +65,10 @@ error: binding modifiers may only be written when the default binding mode is `m
65
65
--> $DIR/ref-binding-on-inh-ref-errors.rs:83:10
66
66
|
67
67
LL | let [ref mut x] = &mut [0];
68
-
| ^^^^^^^--
69
-
| |
70
-
| this binding modifier
71
-
| default binding mode is `ref mut`
68
+
| -^^^^^^^---
69
+
| ||
70
+
| |this binding modifier
71
+
| default binding mode is `ref mut`
72
72
|
73
73
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
0 commit comments