]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/union/issue-41073.rs
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / union / issue-41073.rs
index 4dfdc606bb4091333fc6cf2a03934516ee8ffad1..f7a82b4e7cf5d17ab806a44c4a9d893a1e0c0452 100644 (file)
@@ -1,5 +1,5 @@
 union Test {
-    a: A, //~ ERROR unions cannot contain fields that may need dropping
+    a: A, //~ ERROR field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union
     b: B
 }