aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/structural-eq-peq.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/structural-eq-peq.rs')
-rw-r--r--gcc/testsuite/rust/compile/structural-eq-peq.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/structural-eq-peq.rs b/gcc/testsuite/rust/compile/structural-eq-peq.rs
new file mode 100644
index 0000000..d04c295
--- /dev/null
+++ b/gcc/testsuite/rust/compile/structural-eq-peq.rs
@@ -0,0 +1,9 @@
+#[lang = "structural_peq"]
+pub trait StructuralPartialEq {
+ // Empty.
+}
+
+#[lang = "structural_teq"]
+pub trait StructuralEq {
+ // Empty.
+}