diff options
Diffstat (limited to 'tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs')
-rw-r--r-- | tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs b/tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs new file mode 100644 index 000000000..5f9c22681 --- /dev/null +++ b/tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs @@ -0,0 +1,13 @@ +#![crate_type = "lib"] + +pub struct Fish { + pub x: isize +} + +mod unexported { + use super::Fish; + impl PartialEq for Fish { + fn eq(&self, _: &Fish) -> bool { true } + fn ne(&self, _: &Fish) -> bool { false } + } +} |