]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/impl-privacy-xc-2.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / impl-privacy-xc-2.rs
index 74d9a34e1618ced8c99d8a4a8e90d2dee36d5e1a..3ef4b43d079c8b996645097f773e9e1d2896860e 100644 (file)
@@ -1,10 +1,19 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:impl_privacy_xc_2.rs
-// xfail-fast
 
-extern mod impl_privacy_xc_2;
+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 };
-    io::println(if fish1.eq(&fish2) { "yes" } else { "no " });
+    if fish1.eq(&fish2) { println!("yes") } else { println!("no") };
 }