File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ let q = p;
30
30
31
31
Whenever a temporary is created, it is automatically dropped (freed) according
32
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.
33
+ statement -- in this case, after the ` let p ` . This is illustrated in the example
34
+ above by showing that ` tmp ` would be freed as we exit the block.
36
35
37
36
To fix this problem, you need to create a local variable to store the value in
38
37
rather than relying on a temporary. For example, you might change the original
You can’t perform that action at this time.
0 commit comments