summaryrefslogtreecommitdiffstats
path: root/src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs b/src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs
new file mode 100644
index 000000000..62355cc2d
--- /dev/null
+++ b/src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs
@@ -0,0 +1,13 @@
+// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
+
+#[derive(Eq,PartialOrd,PartialEq)]
+struct Error;
+
+#[derive(Ord,Eq,PartialOrd,PartialEq)]
+enum Enum {
+ A {
+ x: Error //~ ERROR
+ }
+}
+
+fn main() {}