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.
1 parent 483ae32 commit b520c2fCopy full SHA for b520c2f
src/test/run-pass/cleanup-rvalue-scopes.rs
@@ -67,8 +67,7 @@ macro_rules! end_of_block(
67
println!("end_of_block({})", stringify!({let $pat = $expr;}));
68
69
{
70
- // Destructor here does not run until exit from the block,
71
- // because value is assigned to.
+ // Destructor here does not run until exit from the block.
72
let $pat = $expr;
73
check_flags(0);
74
}
@@ -83,8 +82,8 @@ macro_rules! end_of_stmt(
83
82
println!("end_of_stmt({})", stringify!($expr));
84
85
86
87
+ // Destructor here run after `let` statement
+ // terminates.
88
89
check_flags(1);
90
0 commit comments