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