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 fe21e4c commit 9c16cc2Copy full SHA for 9c16cc2
src/test/ui/union/union-drop.rs
@@ -48,11 +48,11 @@ fn main() {
48
{
49
let y = Y { a: S };
50
}
51
- assert_eq!(CHECK, 2); // 2, dtor of Y is called
+ assert_eq!(CHECK, 2); // 2, Y has no dtor
52
53
- let y2 = Y { a: S };
54
- std::mem::forget(y2);
+ let u2 = U { a: 1 };
+ std::mem::forget(u2);
55
56
- assert_eq!(CHECK, 2); // 2, dtor of Y *not* called for y2
+ assert_eq!(CHECK, 2); // 2, dtor of U *not* called for u2
57
58
0 commit comments