We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a6973 commit 50ff362Copy full SHA for 50ff362
compiler/rustc_error_codes/src/error_codes/E0716.md
@@ -30,9 +30,8 @@ let q = p;
30
31
Whenever a temporary is created, it is automatically dropped (freed) according
32
to fixed rules. Ordinarily, the temporary is dropped at the end of the enclosing
33
-statement -- in this case, after the outer `let` that assigns to `p`. This is
34
-illustrated in the example above by showing that `tmp` would be freed as we exit
35
-the block.
+statement -- in this case, after the `let p`. This is illustrated in the example
+above by showing that `tmp` would be freed as we exit the block.
36
37
To fix this problem, you need to create a local variable to store the value in
38
rather than relying on a temporary. For example, you might change the original
0 commit comments