Use updated local declaration syntax.
This commit is contained in:
parent
69860b79b8
commit
47fc24bd8f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue