summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-derive.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/union/union-derive.stderr')
-rw-r--r--tests/ui/union/union-derive.stderr38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/ui/union/union-derive.stderr b/tests/ui/union/union-derive.stderr
new file mode 100644
index 000000000..6ef72c901
--- /dev/null
+++ b/tests/ui/union/union-derive.stderr
@@ -0,0 +1,38 @@
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:4:5
+ |
+LL | PartialEq,
+ | ^^^^^^^^^
+
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:5:5
+ |
+LL | PartialOrd,
+ | ^^^^^^^^^^
+
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:6:5
+ |
+LL | Ord,
+ | ^^^
+
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:7:5
+ |
+LL | Hash,
+ | ^^^^
+
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:8:5
+ |
+LL | Default,
+ | ^^^^^^^
+
+error: this trait cannot be derived for unions
+ --> $DIR/union-derive.rs:9:5
+ |
+LL | Debug,
+ | ^^^^^
+
+error: aborting due to 6 previous errors
+