]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrowed-ptr-pattern-infallible.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / borrowed-ptr-pattern-infallible.rs
index 4b2006f51a2d1cbcf274ee148b89aeea5b205db6..55ae6d3bebf67e4910cdf838cd1553e9615909e1 100644 (file)
@@ -1,6 +1,16 @@
-fn main() {
-    let (&x, &y, &z) = (&3, &'a', &@"No pets!");
-    assert x == 3;
-    assert y == 'a';
-    assert z == @"No pets!";
+// Copyright 2012 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.
+
+
+pub fn main() {
+    let (&x, &y) = (&3i, &'a');
+    assert_eq!(x, 3);
+    assert_eq!(y, 'a');
 }