@@ -33,6 +33,7 @@ LL | () if (let 0 = 1) => {}
33
33
|
34
34
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
35
35
= help: add `#![feature(let_chains)]` to the crate attributes to enable
36
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
36
37
37
38
error[E0658]: `let` expressions in this position are experimental
38
39
--> $DIR/feature-gate.rs:14:18
@@ -42,6 +43,7 @@ LL | () if (((let 0 = 1))) => {}
42
43
|
43
44
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
44
45
= help: add `#![feature(let_chains)]` to the crate attributes to enable
46
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
45
47
46
48
error[E0658]: `let` expressions in this position are experimental
47
49
--> $DIR/feature-gate.rs:18:23
@@ -51,6 +53,7 @@ LL | () if true && let 0 = 1 => {}
51
53
|
52
54
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
53
55
= help: add `#![feature(let_chains)]` to the crate attributes to enable
56
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
54
57
55
58
error[E0658]: `let` expressions in this position are experimental
56
59
--> $DIR/feature-gate.rs:22:15
@@ -60,6 +63,7 @@ LL | () if let 0 = 1 && true => {}
60
63
|
61
64
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
62
65
= help: add `#![feature(let_chains)]` to the crate attributes to enable
66
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
63
67
64
68
error[E0658]: `let` expressions in this position are experimental
65
69
--> $DIR/feature-gate.rs:26:16
@@ -69,6 +73,7 @@ LL | () if (let 0 = 1) && true => {}
69
73
|
70
74
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
71
75
= help: add `#![feature(let_chains)]` to the crate attributes to enable
76
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
72
77
73
78
error[E0658]: `let` expressions in this position are experimental
74
79
--> $DIR/feature-gate.rs:30:24
@@ -78,6 +83,7 @@ LL | () if true && (let 0 = 1) => {}
78
83
|
79
84
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
80
85
= help: add `#![feature(let_chains)]` to the crate attributes to enable
86
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
81
87
82
88
error[E0658]: `let` expressions in this position are experimental
83
89
--> $DIR/feature-gate.rs:34:16
@@ -87,6 +93,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
87
93
|
88
94
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
89
95
= help: add `#![feature(let_chains)]` to the crate attributes to enable
96
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
90
97
91
98
error[E0658]: `let` expressions in this position are experimental
92
99
--> $DIR/feature-gate.rs:34:31
@@ -96,6 +103,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
96
103
|
97
104
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
98
105
= help: add `#![feature(let_chains)]` to the crate attributes to enable
106
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
99
107
100
108
error[E0658]: `let` expressions in this position are experimental
101
109
--> $DIR/feature-gate.rs:40:15
@@ -105,6 +113,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
105
113
|
106
114
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
107
115
= help: add `#![feature(let_chains)]` to the crate attributes to enable
116
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
108
117
109
118
error[E0658]: `let` expressions in this position are experimental
110
119
--> $DIR/feature-gate.rs:40:28
@@ -114,6 +123,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
114
123
|
115
124
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
116
125
= help: add `#![feature(let_chains)]` to the crate attributes to enable
126
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
117
127
118
128
error[E0658]: `let` expressions in this position are experimental
119
129
--> $DIR/feature-gate.rs:40:42
@@ -123,6 +133,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
123
133
|
124
134
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
125
135
= help: add `#![feature(let_chains)]` to the crate attributes to enable
136
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
126
137
127
138
error[E0658]: `let` expressions in this position are experimental
128
139
--> $DIR/feature-gate.rs:40:55
@@ -132,6 +143,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
132
143
|
133
144
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
134
145
= help: add `#![feature(let_chains)]` to the crate attributes to enable
146
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
135
147
136
148
error[E0658]: `let` expressions in this position are experimental
137
149
--> $DIR/feature-gate.rs:40:68
@@ -141,6 +153,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
141
153
|
142
154
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
143
155
= help: add `#![feature(let_chains)]` to the crate attributes to enable
156
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
144
157
145
158
error[E0658]: `let` expressions in this position are experimental
146
159
--> $DIR/feature-gate.rs:52:15
@@ -150,6 +163,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
150
163
|
151
164
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
152
165
= help: add `#![feature(let_chains)]` to the crate attributes to enable
166
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
153
167
154
168
error[E0658]: `let` expressions in this position are experimental
155
169
--> $DIR/feature-gate.rs:68:16
@@ -159,6 +173,7 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
159
173
|
160
174
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
161
175
= help: add `#![feature(let_chains)]` to the crate attributes to enable
176
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
162
177
163
178
error[E0658]: `let` expressions in this position are experimental
164
179
--> $DIR/feature-gate.rs:71:16
@@ -168,6 +183,7 @@ LL | use_expr!((let 0 = 1));
168
183
|
169
184
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
170
185
= help: add `#![feature(let_chains)]` to the crate attributes to enable
186
+ = help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
171
187
172
188
error: `let` expressions are not supported here
173
189
--> $DIR/feature-gate.rs:10:16
0 commit comments