2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
2013-01-31 14:40:05 -06:00
|
|
|
// aux-build:impl_privacy_xc_2.rs
|
|
|
|
|
2014-02-14 12:10:06 -06:00
|
|
|
extern crate impl_privacy_xc_2;
|
2013-01-31 14:40:05 -06:00
|
|
|
|
2013-02-17 16:36:43 -06:00
|
|
|
pub fn main() {
|
2013-01-31 14:40:05 -06:00
|
|
|
let fish1 = impl_privacy_xc_2::Fish { x: 1 };
|
|
|
|
let fish2 = impl_privacy_xc_2::Fish { x: 2 };
|
2014-01-09 04:06:55 -06:00
|
|
|
if fish1.eq(&fish2) { println!("yes") } else { println!("no") };
|
2013-01-31 14:40:05 -06:00
|
|
|
}
|