summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/issue-3935.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/deriving/issue-3935.rs')
-rw-r--r--tests/ui/deriving/issue-3935.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/deriving/issue-3935.rs b/tests/ui/deriving/issue-3935.rs
new file mode 100644
index 000000000..e98d68e0e
--- /dev/null
+++ b/tests/ui/deriving/issue-3935.rs
@@ -0,0 +1,13 @@
+// run-pass
+
+#[derive(PartialEq)]
+struct Bike {
+ name: String,
+}
+
+pub fn main() {
+ let town_bike = Bike { name: "schwinn".to_string() };
+ let my_bike = Bike { name: "surly".to_string() };
+
+ assert!(town_bike != my_bike);
+}