Skip to content

Commit 42badfd

Browse files
authored
Merge pull request #213 from dtolnay/fixme
Annotate expressions that are rendered poorly by core::stringify
2 parents 6e17bdb + 5498d85 commit 42badfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tests/test_ensure.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ fn test_as() {
528528
let test = || Ok(ensure!(f as for<'a> fn() as usize * 0 != 0));
529529
assert_err(
530530
test,
531-
"Condition failed: `f as for<'a>fn() as usize * 0 != 0` (0 vs 0)",
531+
"Condition failed: `f as for<'a>fn() as usize * 0 != 0` (0 vs 0)", // FIXME
532532
);
533533

534534
let test = || Ok(ensure!(f as unsafe fn() as usize * 0 != 0));
@@ -613,7 +613,7 @@ fn test_pat() {
613613
let test = || Ok(ensure!(if let -1..=1 = 0 { 0 } else { 1 } == 1));
614614
assert_err(
615615
test,
616-
"Condition failed: `if let -1 ..=1 = 0 { 0 } else { 1 } == 1` (0 vs 1)",
616+
"Condition failed: `if let -1 ..=1 = 0 { 0 } else { 1 } == 1` (0 vs 1)", // FIXME
617617
);
618618

619619
let test = || Ok(ensure!(if let &0 = &0 { 0 } else { 1 } == 1));
@@ -656,7 +656,7 @@ fn test_pat() {
656656
let test = || Ok(ensure!(if let P::<u8> {} = p { 0 } else { 1 } == 1));
657657
assert_err(
658658
test,
659-
"Condition failed: `if let P::<u8> { } = p { 0 } else { 1 } == 1` (0 vs 1)",
659+
"Condition failed: `if let P::<u8> { } = p { 0 } else { 1 } == 1` (0 vs 1)", // FIXME
660660
);
661661

662662
let test = || Ok(ensure!(if let ::std::marker::PhantomData = p {} != ()));

0 commit comments

Comments
 (0)