]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/impl-privacy-xc-2.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / privacy / impl-privacy-xc-2.rs
1 // run-pass
2 // aux-build:impl_privacy_xc_2.rs
3
4 extern crate impl_privacy_xc_2;
5
6 pub fn main() {
7     let fish1 = impl_privacy_xc_2::Fish { x: 1 };
8     let fish2 = impl_privacy_xc_2::Fish { x: 2 };
9     if fish1.eq(&fish2) { println!("yes") } else { println!("no") };
10 }