Skip to content

Commit 16f1a72

Browse files
committed
auto merge of #11975 : jfager/rust/r8498, r=alexcrichton
Closes #8498
2 parents 3e39e3e + e704561 commit 16f1a72

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/test/run-pass/issue-8498.rs

+2-10
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,28 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
12-
1311
pub fn main() {
14-
// This is ok
1512
match &[(~5,~7)] {
1613
ps => {
1714
let (ref y, _) = ps[0];
18-
println!("1. y = {}", **y);
1915
assert!(**y == 5);
2016
}
2117
}
2218

23-
// This is not entirely ok
2419
match Some(&[(~5,)]) {
2520
Some(ps) => {
2621
let (ref y,) = ps[0];
27-
println!("2. y = {}", **y);
28-
if **y != 5 { println!("sadness"); }
22+
assert!(**y == 5);
2923
}
3024
None => ()
3125
}
3226

33-
// This is not ok
3427
match Some(&[(~5,~7)]) {
3528
Some(ps) => {
3629
let (ref y, ref z) = ps[0];
37-
println!("3. y = {} z = {}", **y, **z);
3830
assert!(**y == 5);
31+
assert!(**z == 7);
3932
}
4033
None => ()
4134
}
4235
}
43-

0 commit comments

Comments
 (0)