File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,14 @@ match Some(42) {
144
144
}
145
145
"## ,
146
146
147
+ E0161 : r##"
148
+ In Rust, you can only move a value when its size is known at compile time.
149
+
150
+ To work around this restriction, consider "hiding" the value behind a reference:
151
+ either `&x` or `&mut x`. Since a reference has a fixed size, this lets you move
152
+ it around as usual.
153
+ "## ,
154
+
147
155
E0162 : r##"
148
156
An if-let pattern attempts to match the pattern, and enters the body if the
149
157
match was succesful. If the match is irrefutable (when it cannot fail to match),
@@ -288,7 +296,6 @@ register_diagnostics! {
288
296
E0137 ,
289
297
E0138 ,
290
298
E0139 ,
291
- E0161 ,
292
299
E0170 ,
293
300
E0261 , // use of undeclared lifetime name
294
301
E0262 , // illegal lifetime parameter name
You can’t perform that action at this time.
0 commit comments