]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/union/unresolved-field-isnt-copy.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / union / unresolved-field-isnt-copy.rs
diff --git a/tests/ui/union/unresolved-field-isnt-copy.rs b/tests/ui/union/unresolved-field-isnt-copy.rs
new file mode 100644 (file)
index 0000000..7a6d79b
--- /dev/null
@@ -0,0 +1,8 @@
+// Unresolved fields are not copy, but also shouldn't report an extra E0740.
+
+pub union Foo {
+    x: *const Missing,
+    //~^ ERROR cannot find type `Missing` in this scope
+}
+
+fn main() {}