Use updated local declaration syntax.

This commit is contained in:
Dan Luu 2013-10-20 17:54:53 -05:00
parent 69860b79b8
commit 47fc24bd8f
1 changed files with 1 additions and 4 deletions

View File

@ -1,5 +1,3 @@
// xfail-test FIXME #6257
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
@ -16,9 +14,8 @@ use std::cmp::{Less,Equal,Greater};
struct A<'self> {
x: &'self int
}
fn main() {
let a = A { x: &1 }, b = A { x: &2 };
let (a, b) = (A { x: &1 }, A { x: &2 });
assert!(a.equals(&a));
assert!(b.equals(&b));