We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79815e7 commit 5c26228Copy full SHA for 5c26228
src/librustc/diagnostics.rs
@@ -144,6 +144,14 @@ match Some(42) {
144
}
145
"##,
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
155
E0162: r##"
156
An if-let pattern attempts to match the pattern, and enters the body if the
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
0 commit comments