You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like foo_a is not dropped where the comment mentions.
Rather, it is dropped at the very end of the scope, after foo_b.
Confirmed it by implementing Drop trait for struct Foo
impl Drop for Foo {
fn drop(self:&mut Self) {
println!("Dropping");
}
}
The text was updated successfully, but these errors were encountered:
Seems like
foo_a
is not dropped where the comment mentions.Rather, it is dropped at the very end of the scope, after
foo_b
.Confirmed it by implementing Drop trait for
struct Foo
The text was updated successfully, but these errors were encountered: