Skip to content

Commit 909e1d6

Browse files
committed
Add assertion that test returns expected result.
(That is, `exported_generic(A,B)` returns `(A, B+1 + 1+B - 1)`.)
1 parent 939e4c9 commit 909e1d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/import-crate-with-invalid-spans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ fn main() {
1818
// The AST of `exported_generic` stored in crate_with_invalid_spans's
1919
// metadata should contain an invalid span where span.lo > span.hi.
2020
// Let's make sure the compiler doesn't crash when encountering this.
21-
let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
21+
let (a, b) = crate_with_invalid_spans::exported_generic(32u32, 7u32);
22+
assert_eq!((a, b), (32u32, 8 + 8 - 1));
2223
}

0 commit comments

Comments
 (0)