summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/impl-privacy-xc-2.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/privacy/impl-privacy-xc-2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/privacy/impl-privacy-xc-2.rs b/src/test/ui/privacy/impl-privacy-xc-2.rs
new file mode 100644
index 000000000..390764588
--- /dev/null
+++ b/src/test/ui/privacy/impl-privacy-xc-2.rs
@@ -0,0 +1,10 @@
+// run-pass
+// aux-build:impl_privacy_xc_2.rs
+
+extern crate impl_privacy_xc_2;
+
+pub fn main() {
+ let fish1 = impl_privacy_xc_2::Fish { x: 1 };
+ let fish2 = impl_privacy_xc_2::Fish { x: 2 };
+ if fish1.eq(&fish2) { println!("yes") } else { println!("no") };
+}