diff options
| author | Dan Luu <danluu@gmail.com> | 2013-10-20 17:54:53 -0500 |
|---|---|---|
| committer | Dan Luu <danluu@gmail.com> | 2013-10-20 17:54:53 -0500 |
| commit | 47fc24bd8f48032c259f3573b4836dffae048ea3 (patch) | |
| tree | 98d9a2b0274f150572ec390695db3617e67dd9fd /src | |
| parent | 69860b79b8f4882426fb5755c6d00e6717adeb38 (diff) | |
| download | rust-47fc24bd8f48032c259f3573b4836dffae048ea3.tar.gz rust-47fc24bd8f48032c259f3573b4836dffae048ea3.zip | |
Use updated local declaration syntax.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs b/src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs index 2d42088fc14..3684615ad56 100644 --- a/src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs +++ b/src/test/run-pass/deriving-self-lifetime-totalord-totaleq.rs @@ -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)); |
