Skip to content

Commit 47fc24b

Browse files
committed
Use updated local declaration syntax.
1 parent 69860b7 commit 47fc24b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-test FIXME #6257
2-
31
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
42
// file at the top-level directory of this distribution and at
53
// http://rust-lang.org/COPYRIGHT.
@@ -16,9 +14,8 @@ use std::cmp::{Less,Equal,Greater};
1614
struct A<'self> {
1715
x: &'self int
1816
}
19-
2017
fn main() {
21-
let a = A { x: &1 }, b = A { x: &2 };
18+
let (a, b) = (A { x: &1 }, A { x: &2 });
2219

2320
assert!(a.equals(&a));
2421
assert!(b.equals(&b));

0 commit comments

Comments
 (0)