We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15a8b49 + 0b5653f commit 38283bcCopy full SHA for 38283bc
compiler/rustc_error_codes/src/error_codes/E0384.md
@@ -18,3 +18,16 @@ fn main() {
18
x = 5;
19
}
20
```
21
+
22
+Alternatively, you might consider initializing a new variable: either with a new
23
+bound name or (by [shadowing]) with the bound name of your existing variable.
24
+For example:
25
26
+[shadowing]: https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing
27
28
+```
29
+fn main() {
30
+ let x = 3;
31
+ let x = 5;
32
+}
33
0 commit comments