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