]> git.proxmox.com Git - rustc.git/blobdiff - vendor/thiserror/tests/ui/union.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / vendor / thiserror / tests / ui / union.rs
diff --git a/vendor/thiserror/tests/ui/union.rs b/vendor/thiserror/tests/ui/union.rs
new file mode 100644 (file)
index 0000000..cd6a934
--- /dev/null
@@ -0,0 +1,9 @@
+use thiserror::Error;
+
+#[derive(Error)]
+pub union U {
+    msg: &'static str,
+    num: usize,
+}
+
+fn main() {}