Skip to content

Commit 50ff362

Browse files
authored
Update E0716.md
Clearer wording
1 parent 71a6973 commit 50ff362

File tree

1 file changed

+2
-3
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0716.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ let q = p;
3030

3131
Whenever a temporary is created, it is automatically dropped (freed) according
3232
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.
3635

3736
To fix this problem, you need to create a local variable to store the value in
3837
rather than relying on a temporary. For example, you might change the original

0 commit comments

Comments
 (0)